-
Notifications
You must be signed in to change notification settings - Fork 3
Scripting Cheatsheet
Stephen Berry edited this page Jul 12, 2016
·
2 revisions
This section covers the registered functions and types in Ascent's implementation of ChaiScript and how to use them when scripting.
- dt (time step)
- dt_base (base time step)
- t_end (simulation end time)
- module_id
- run()
- run(const double dt, const double t_end);
- module (provides access to contained module)
- name(const std::string& id);
link_name.module.x = 2.0;
All are equivalent to Eigen type names, simply without the Eigen namespace.
- Vector2d
- Vector3d
- Vector4d
- VectorXd
var x = Vector3d(0.0, 1.0, 2.0);
-
- (multiplication with scalars)
- dot (dot product)
- cross (cross product)
var result = vec0.cross(vec1);
- MatrixXd
-
- (multiplication with scalars and vectors)