|
Momentum Scripting v1
|
Classes | |
| class | AffineMatrix4x4 |
| class | AngularMotor |
| class | AngularRange |
| class | AngularSecondaryJoint |
| class | AngularSpring |
| class | BallJoint |
| class | BodyDistribution |
| class | BodyModel |
| class | ContactPoint |
| class | ConveyorBelt |
| class | CylindricalJoint |
| class | DataBufferAccessor |
| class | Emitter |
| class | EulerAngles |
| class | EulerConvention |
| class | FrictionController |
| class | Geometry |
| class | GranularBody |
| class | GranularBodySystem |
| class | GranularGranularContact |
| class | GranularRigidBodyContact |
| class | HingeJoint |
| class | Joint |
| class | LinearMotor |
| class | LinearRange |
| class | LinearSecondaryJoint |
| class | LinearSpring |
| class | LockJoint |
| class | Material |
| class | MaterialPair |
| class | Matrix3x3 |
| class | Matrix4x4 |
| class | Observer |
| class | ParticleDistribution |
| class | ParticleModel |
| class | PrismaticJoint |
| class | Quat |
| class | RigidBody |
| class | SceneGraph |
| class | SceneNode |
| class | Screw1D |
| class | SecondaryJoint |
| class | Sensor |
| class | Simulation |
| class | SpringJoint |
| class | Vec3 |
| class | Vec4 |
Typedefs | |
| typedef std::shared_ptr< BallJoint > | BallJointPtr |
| typedef std::vector< std::shared_ptr< BallJoint > > | BallJointVector |
| typedef std::shared_ptr< BodyDistribution > | BodyDistributionPtr |
| typedef std::vector< std::shared_ptr< BodyDistribution > > | BodyDistributionVector |
| typedef std::shared_ptr< BodyModel > | BodyModelPtr |
| typedef std::vector< std::shared_ptr< BodyModel > > | BodyModelVector |
| typedef std::shared_ptr< ContactPoint > | ContactPointPtr |
| typedef std::vector< std::shared_ptr< ContactPoint > > | ContactPointVector |
| typedef std::shared_ptr< ConveyorBelt > | ConveyorBeltPtr |
| typedef std::vector< std::shared_ptr< ConveyorBelt > > | ConveyorBeltVector |
| typedef std::shared_ptr< CylindricalJoint > | CylindricalJointPtr |
| typedef std::vector< std::shared_ptr< CylindricalJoint > > | CylindricalJointVector |
| typedef std::shared_ptr< Emitter > | EmitterPtr |
| typedef std::vector< std::shared_ptr< Emitter > > | EmitterVector |
| typedef std::shared_ptr< FrictionController > | FrictionControllerPtr |
| typedef std::vector< std::shared_ptr< FrictionController > > | FrictionControllerVector |
| typedef std::shared_ptr< Geometry > | GeometryPtr |
| typedef std::vector< std::shared_ptr< Geometry > > | GeometryVector |
| typedef std::shared_ptr< GranularBody > | GranularBodyPtr |
| typedef std::vector< std::shared_ptr< GranularBody > > | GranularBodyVector |
| typedef std::shared_ptr< GranularGranularContact > | GranularGranularContactPtr |
| typedef std::vector< std::shared_ptr< GranularGranularContact > > | GranularGranularContactVector |
| typedef std::shared_ptr< GranularRigidBodyContact > | GranularRigidBodyContactPtr |
| typedef std::vector< std::shared_ptr< GranularRigidBodyContact > > | GranularRigidBodyContactVector |
| typedef std::shared_ptr< HingeJoint > | HingeJointPtr |
| typedef std::vector< std::shared_ptr< HingeJoint > > | HingeJointVector |
| typedef std::shared_ptr< Joint > | JointPtr |
| typedef std::vector< std::shared_ptr< Joint > > | JointVector |
| typedef std::shared_ptr< LockJoint > | LockJointPtr |
| typedef std::vector< std::shared_ptr< LockJoint > > | LockJointVector |
| typedef std::shared_ptr< MaterialPair > | MaterialPairPtr |
| typedef std::vector< std::shared_ptr< MaterialPair > > | MaterialPairVector |
| typedef std::shared_ptr< Material > | MaterialPtr |
| typedef std::vector< std::shared_ptr< Material > > | MaterialVector |
| typedef std::shared_ptr< Observer > | ObserverPtr |
| typedef std::vector< std::shared_ptr< Observer > > | ObserverVector |
| typedef std::shared_ptr< ParticleDistribution > | ParticleDistributionPtr |
| typedef std::vector< std::shared_ptr< ParticleDistribution > > | ParticleDistributionVector |
| typedef std::shared_ptr< ParticleModel > | ParticleModelPtr |
| typedef std::vector< std::shared_ptr< ParticleModel > > | ParticleModelVector |
| typedef std::shared_ptr< PrismaticJoint > | PrismaticJointPtr |
| typedef std::vector< std::shared_ptr< PrismaticJoint > > | PrismaticJointVector |
| typedef std::pair< double, double > | RangeReal |
| typedef std::shared_ptr< RigidBody > | RigidBodyPtr |
| typedef std::vector< std::shared_ptr< RigidBody > > | RigidBodyVector |
| typedef std::shared_ptr< SceneGraph > | SceneGraphPtr |
| typedef std::vector< std::shared_ptr< SceneGraph > > | SceneGraphVector |
| typedef std::shared_ptr< SceneNode > | SceneNodePtr |
| typedef std::vector< std::shared_ptr< SceneNode > > | SceneNodeVector |
| typedef std::shared_ptr< Screw1D > | Screw1DPtr |
| typedef std::vector< std::shared_ptr< Screw1D > > | Screw1DVector |
| typedef std::shared_ptr< Sensor > | SensorPtr |
| typedef std::vector< std::shared_ptr< Sensor > > | SensorVector |
| typedef std::shared_ptr< SpringJoint > | SpringJointPtr |
| typedef std::vector< std::shared_ptr< SpringJoint > > | SpringJointVector |
Functions | |
| template<typename T > | |
| bool | _equivalent (T lhs, T rhs, T epsilon=T(MOMENTUM_EQUIVALENT_EPSILON)) |
| template<typename T > | |
| bool | _relativelyEquivalent (T lhs, T rhs, T relativeEpsilon=T(MOMENTUM_EQUIVALENT_EPSILON)) |
| Vec3 | absolute (const Vec3 &a) |
| Vec4 | absolute (const Vec4 &a) |
| Vec3 | asin (const Vec3 &a) |
| Vec3 | clamp (const Vec3 &vec, const Vec3 &minimum, const Vec3 &maximum) |
| Vec4 | clamp (const Vec4 &vec, const Vec4 &minimum, const Vec4 &maximum) |
| bool | equalsZero (double d, double eps=DBL_EPSILON) |
| bool | equivalent (const Matrix3x3 &a, const Matrix3x3 &b, double epsilon=1e-6) |
| bool | equivalent (const Matrix4x4 &a, const Matrix4x4 &b, double epsilon=1e-6) |
| bool | equivalent (const Quat &a, const Quat &b, double epsilon=double(MOMENTUM_EQUIVALENT_EPSILON)) |
| bool | equivalent (const Vec3 &a, const Vec3 &b, double epsilon=double(MOMENTUM_EQUIVALENT_EPSILON)) |
| bool | equivalent (const Vec4 &a, const Vec4 &b, double epsilon=double(MOMENTUM_EQUIVALENT_EPSILON)) |
| bool | equivalent (double lhs, double rhs, double epsilon=(double) MOMENTUM_EQUIVALENT_EPSILON) |
| Simulation * | getSimulation () |
| template<typename T1 , typename T2 > | |
| T1 const | lerp (T1 const &a, T1 const &b, T2 s) |
| template<typename T > | |
| T const | logInterpolate (T const &a, T const &b, float s) |
| Vec3 | max (const Vec3 &lhs, const Vec3 &rhs) |
| Vec3 | min (const Vec3 &lhs, const Vec3 &rhs) |
| double | operator* (const Vec3 &lhs, const Vec4 &rhs) |
| Vec3 | operator* (const Vec3 &v, const Matrix3x3 &m) |
| Vec3 | operator* (const Vec3 &v, const Matrix4x4 &m) |
| double | operator* (const Vec4 &lhs, const Vec3 &rhs) |
| Vec4 | operator* (const Vec4 &v, const Matrix4x4 &m) |
| Vec3 | operator* (double val, const Vec3 &vec) |
| std::ostream & | operator<< (std::ostream &os, const EulerAngles &e) |
| std::ostream & | operator<< (std::ostream &os, const Matrix3x3 &m) |
| std::ostream & | operator<< (std::ostream &os, const Matrix4x4 &m) |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &output, const Quat &quat) |
| std::ostream & | operator<< (std::ostream &output, const Vec3 &v) |
| std::ostream & | operator<< (std::ostream &output, const Vec4 &v) |
| bool | relativelyEquivalent (double lhs, double rhs, double epsilon=(double) MOMENTUM_EQUIVALENT_EPSILON) |
| Vec3 | sinc (const Vec3 &a) |
Variables | |
| const double | GRAVITY_ACCELERATION = double(9.80665) |
| const double | Infinity = std::numeric_limits<double>::infinity() |
| const double | MOMENTUM_EQUIVALENT_EPSILON = (double)1E-9 |
| const double | PI = double(M_PI) |
| const double | PI_2 = double(M_PI_2) |
| const double | PI_4 = double(M_PI_4) |
| const double | REAL_SQRT_EPSILON = std::sqrt(std::numeric_limits< double >::epsilon()) |
Namespace for Momentum Scripting API.
| typedef std::shared_ptr< BallJoint > MOMENTUM_NAMESPACE::BallJointPtr |
| typedef std::vector<std::shared_ptr< BallJoint > > MOMENTUM_NAMESPACE::BallJointVector |
A vector with objects of the type BallJoint .
| typedef std::shared_ptr< BodyDistribution > MOMENTUM_NAMESPACE::BodyDistributionPtr |
| typedef std::vector<std::shared_ptr< BodyDistribution > > MOMENTUM_NAMESPACE::BodyDistributionVector |
A vector with objects of the type BodyDistribution .
| typedef std::shared_ptr< BodyModel > MOMENTUM_NAMESPACE::BodyModelPtr |
| typedef std::vector<std::shared_ptr< BodyModel > > MOMENTUM_NAMESPACE::BodyModelVector |
A vector with objects of the type BodyModel .
| typedef std::shared_ptr< ContactPoint > MOMENTUM_NAMESPACE::ContactPointPtr |
| typedef std::vector<std::shared_ptr< ContactPoint > > MOMENTUM_NAMESPACE::ContactPointVector |
A vector with objects of the type ContactPoint .
| typedef std::shared_ptr< ConveyorBelt > MOMENTUM_NAMESPACE::ConveyorBeltPtr |
| typedef std::vector<std::shared_ptr< ConveyorBelt > > MOMENTUM_NAMESPACE::ConveyorBeltVector |
A vector with objects of the type ConveyorBelt .
| typedef std::shared_ptr< CylindricalJoint > MOMENTUM_NAMESPACE::CylindricalJointPtr |
| typedef std::vector<std::shared_ptr< CylindricalJoint > > MOMENTUM_NAMESPACE::CylindricalJointVector |
A vector with objects of the type CylindricalJoint .
| typedef std::shared_ptr< Emitter > MOMENTUM_NAMESPACE::EmitterPtr |
| typedef std::vector<std::shared_ptr< Emitter > > MOMENTUM_NAMESPACE::EmitterVector |
A vector with objects of the type Emitter .
| typedef std::shared_ptr< FrictionController > MOMENTUM_NAMESPACE::FrictionControllerPtr |
| typedef std::vector<std::shared_ptr< FrictionController > > MOMENTUM_NAMESPACE::FrictionControllerVector |
A vector with objects of the type FrictionController .
| typedef std::shared_ptr< Geometry > MOMENTUM_NAMESPACE::GeometryPtr |
| typedef std::vector<std::shared_ptr< Geometry > > MOMENTUM_NAMESPACE::GeometryVector |
A vector with objects of the type Geometry .
| typedef std::shared_ptr< GranularBody > MOMENTUM_NAMESPACE::GranularBodyPtr |
| typedef std::vector<std::shared_ptr< GranularBody > > MOMENTUM_NAMESPACE::GranularBodyVector |
A vector with objects of the type GranularBody .
| typedef std::shared_ptr< GranularGranularContact > MOMENTUM_NAMESPACE::GranularGranularContactPtr |
| typedef std::vector<std::shared_ptr< GranularGranularContact > > MOMENTUM_NAMESPACE::GranularGranularContactVector |
A vector with objects of the type GranularGranularContact .
| typedef std::shared_ptr< GranularRigidBodyContact > MOMENTUM_NAMESPACE::GranularRigidBodyContactPtr |
| typedef std::vector<std::shared_ptr< GranularRigidBodyContact > > MOMENTUM_NAMESPACE::GranularRigidBodyContactVector |
A vector with objects of the type GranularRigidBodyContact .
| typedef std::shared_ptr< HingeJoint > MOMENTUM_NAMESPACE::HingeJointPtr |
| typedef std::vector<std::shared_ptr< HingeJoint > > MOMENTUM_NAMESPACE::HingeJointVector |
A vector with objects of the type HingeJoint .
| typedef std::shared_ptr< Joint > MOMENTUM_NAMESPACE::JointPtr |
| typedef std::vector<std::shared_ptr< Joint > > MOMENTUM_NAMESPACE::JointVector |
A vector with objects of the type Joint .
| typedef std::shared_ptr< LockJoint > MOMENTUM_NAMESPACE::LockJointPtr |
| typedef std::vector<std::shared_ptr< LockJoint > > MOMENTUM_NAMESPACE::LockJointVector |
A vector with objects of the type LockJoint .
| typedef std::shared_ptr< MaterialPair > MOMENTUM_NAMESPACE::MaterialPairPtr |
| typedef std::vector<std::shared_ptr< MaterialPair > > MOMENTUM_NAMESPACE::MaterialPairVector |
A vector with objects of the type MaterialPair .
| typedef std::shared_ptr< Material > MOMENTUM_NAMESPACE::MaterialPtr |
| typedef std::vector<std::shared_ptr< Material > > MOMENTUM_NAMESPACE::MaterialVector |
A vector with objects of the type Material .
| typedef std::shared_ptr< Observer > MOMENTUM_NAMESPACE::ObserverPtr |
| typedef std::vector<std::shared_ptr< Observer > > MOMENTUM_NAMESPACE::ObserverVector |
A vector with objects of the type Observer .
| typedef std::shared_ptr< ParticleDistribution > MOMENTUM_NAMESPACE::ParticleDistributionPtr |
| typedef std::vector<std::shared_ptr< ParticleDistribution > > MOMENTUM_NAMESPACE::ParticleDistributionVector |
A vector with objects of the type ParticleDistribution .
| typedef std::shared_ptr< ParticleModel > MOMENTUM_NAMESPACE::ParticleModelPtr |
| typedef std::vector<std::shared_ptr< ParticleModel > > MOMENTUM_NAMESPACE::ParticleModelVector |
A vector with objects of the type ParticleModel .
| typedef std::shared_ptr< PrismaticJoint > MOMENTUM_NAMESPACE::PrismaticJointPtr |
| typedef std::vector<std::shared_ptr< PrismaticJoint > > MOMENTUM_NAMESPACE::PrismaticJointVector |
A vector with objects of the type PrismaticJoint .
| typedef std::pair<double,double> MOMENTUM_NAMESPACE::RangeReal |
| typedef std::shared_ptr< RigidBody > MOMENTUM_NAMESPACE::RigidBodyPtr |
| typedef std::vector<std::shared_ptr< RigidBody > > MOMENTUM_NAMESPACE::RigidBodyVector |
A vector with objects of the type RigidBody .
| typedef std::shared_ptr< SceneGraph > MOMENTUM_NAMESPACE::SceneGraphPtr |
| typedef std::vector<std::shared_ptr< SceneGraph > > MOMENTUM_NAMESPACE::SceneGraphVector |
A vector with objects of the type SceneGraph .
| typedef std::shared_ptr< SceneNode > MOMENTUM_NAMESPACE::SceneNodePtr |
| typedef std::vector<std::shared_ptr< SceneNode > > MOMENTUM_NAMESPACE::SceneNodeVector |
A vector with objects of the type SceneNode .
| typedef std::shared_ptr< Screw1D > MOMENTUM_NAMESPACE::Screw1DPtr |
| typedef std::vector<std::shared_ptr< Screw1D > > MOMENTUM_NAMESPACE::Screw1DVector |
A vector with objects of the type Screw1D .
| typedef std::shared_ptr< Sensor > MOMENTUM_NAMESPACE::SensorPtr |
| typedef std::vector<std::shared_ptr< Sensor > > MOMENTUM_NAMESPACE::SensorVector |
A vector with objects of the type Sensor .
| typedef std::shared_ptr< SpringJoint > MOMENTUM_NAMESPACE::SpringJointPtr |
| typedef std::vector<std::shared_ptr< SpringJoint > > MOMENTUM_NAMESPACE::SpringJointVector |
A vector with objects of the type SpringJoint .
| bool MOMENTUM_NAMESPACE::_equivalent | ( | T | lhs, |
| T | rhs, | ||
| T | epsilon = T(MOMENTUM_EQUIVALENT_EPSILON) |
||
| ) |
Compare two values for equality.
Meaning that the difference between them is less than an epsilon value
| bool MOMENTUM_NAMESPACE::_relativelyEquivalent | ( | T | lhs, |
| T | rhs, | ||
| T | relativeEpsilon = T(MOMENTUM_EQUIVALENT_EPSILON) |
||
| ) |
Compare two values for relative equality.
Meaning that the difference between them is less than an epsilon value The epsilon value is scaled with the values compared, to a minimum of relativeEpsilon.
| bool MOMENTUM_NAMESPACE::equalsZero | ( | double | d, |
| double | eps = DBL_EPSILON |
||
| ) |
d is within the range of (-DBL_EPSILON, DBL_EPSILON). | bool MOMENTUM_NAMESPACE::equivalent | ( | const Matrix3x3 & | a, |
| const Matrix3x3 & | b, | ||
| double | epsilon = 1e-6 |
||
| ) |
| bool MOMENTUM_NAMESPACE::equivalent | ( | const Matrix4x4 & | a, |
| const Matrix4x4 & | b, | ||
| double | epsilon = 1e-6 |
||
| ) |
| bool MOMENTUM_NAMESPACE::equivalent | ( | const Quat & | a, |
| const Quat & | b, | ||
| double | epsilon = double( MOMENTUM_EQUIVALENT_EPSILON ) |
||
| ) |
| bool MOMENTUM_NAMESPACE::equivalent | ( | const Vec3 & | a, |
| const Vec3 & | b, | ||
| double | epsilon = double(MOMENTUM_EQUIVALENT_EPSILON) |
||
| ) |
| bool MOMENTUM_NAMESPACE::equivalent | ( | const Vec4 & | a, |
| const Vec4 & | b, | ||
| double | epsilon = double(MOMENTUM_EQUIVALENT_EPSILON) |
||
| ) |
| bool MOMENTUM_NAMESPACE::equivalent | ( | double | lhs, |
| double | rhs, | ||
| double | epsilon = (double)MOMENTUM_EQUIVALENT_EPSILON |
||
| ) |
Compare two values for equality.
Meaning that the difference between them is less than an epsilon value
| Simulation * MOMENTUM_NAMESPACE::getSimulation | ( | ) |
Return a pointer to the simulation object which can be used to access all joints, bodies, contacts etc.
| T1 const MOMENTUM_NAMESPACE::lerp | ( | T1 const & | a, |
| T1 const & | b, | ||
| T2 | s | ||
| ) |
Linearly interpolate from a to b using s = {0,..1}.
| T const MOMENTUM_NAMESPACE::logInterpolate | ( | T const & | a, |
| T const & | b, | ||
| float | s | ||
| ) |
logarithmic interpolation from a to b using s = {0,..1}
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | os, |
| const EulerAngles & | e | ||
| ) |
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | os, |
| const Matrix3x3 & | m | ||
| ) |
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | os, |
| const Matrix4x4 & | m | ||
| ) |
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | output, |
| const Quat & | quat | ||
| ) |
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | output, |
| const Vec3 & | v | ||
| ) |
| std::ostream & MOMENTUM_NAMESPACE::operator<< | ( | std::ostream & | output, |
| const Vec4 & | v | ||
| ) |
| bool MOMENTUM_NAMESPACE::relativelyEquivalent | ( | double | lhs, |
| double | rhs, | ||
| double | epsilon = (double)MOMENTUM_EQUIVALENT_EPSILON |
||
| ) |
Compare two values for relative equality.
Meaning that the difference between them is less than an epsilon value The epsilon value is scaled with the values compared, to a minimum of relativeEpsilon^2.
| const double MOMENTUM_NAMESPACE::GRAVITY_ACCELERATION = double(9.80665) |
| const double MOMENTUM_NAMESPACE::Infinity = std::numeric_limits<double>::infinity() |
| const double MOMENTUM_NAMESPACE::MOMENTUM_EQUIVALENT_EPSILON = (double)1E-9 |
| const double MOMENTUM_NAMESPACE::PI = double(M_PI) |
| const double MOMENTUM_NAMESPACE::PI_2 = double(M_PI_2) |
| const double MOMENTUM_NAMESPACE::PI_4 = double(M_PI_4) |
| const double MOMENTUM_NAMESPACE::REAL_SQRT_EPSILON = std::sqrt(std::numeric_limits< double >::epsilon()) |