Om
1.0.0
A universal framework for multimedia simulation
|
A class that stores a 3D transformation and velocity information for a moving object. More...
#include <omEngineTrajectory.h>
Public Member Functions | |
Trajectory () | |
Create a default identity trajectory transformation with no motion. More... | |
Trajectory (const Transform3f &newTransform) | |
Create a trajectory with the specified static transformation. More... | |
Trajectory (const Transform3f &newTransform, const Vector3f &newVelocity, const Vector3f &newAngularVelocity=Vector3f()) | |
Create a trajectory with the specified transformation and velocities. More... | |
const Vector3f & | getPosition () const |
Return the position of this trajectory in world space. More... | |
void | setPosition (const Vector3f &newPosition) |
Set the position of this trajectory in world space. More... | |
const Matrix3f & | getOrientation () const |
Return a reference to this trajectory's 3x3 orthonormal rotation matrix. More... | |
void | setOrientation (const Matrix3f &newOrientation) |
Set this trajectory's 3x3 orthonormal rotation matrix. More... | |
const Transform3f & | getTransform () const |
Return a const reference to this trajectory's transformation. More... | |
void | setTransform (const Transform3f &newTransform) |
Set this trajectory's transformation. More... | |
const Vector3f & | getVelocity () const |
Return the linear velocity of this trajectory in world units per second. More... | |
void | setVelocity (const Vector3f &newVelocity) |
Set the linear velocity of this trajectory in world units per second. More... | |
const Vector3f & | getAngularVelocity () const |
Return the angular velocity of this trajectory in radians per second. More... | |
void | setAngularVelocity (const Vector3f &newAngularVelocity) |
Set the angular velocity of this trajectory in radians per second. More... | |
A class that stores a 3D transformation and velocity information for a moving object.
This class allows unrelated systems to communicate the positions of common objects. For example, a physics object can set a trajectory that is then read by a graphics object.
|
inline |
Create a default identity trajectory transformation with no motion.
|
inline |
Create a trajectory with the specified static transformation.
|
inline |
Create a trajectory with the specified transformation and velocities.
|
inline |
Return the position of this trajectory in world space.
|
inline |
Set the position of this trajectory in world space.
|
inline |
Return a reference to this trajectory's 3x3 orthonormal rotation matrix.
This is the orthonormal matrix which defines the rotational transformation from object to world space.
|
inline |
Set this trajectory's 3x3 orthonormal rotation matrix.
This is the orthonormal matrix which defines the rotational transformation from object to world space.
|
inline |
Return a const reference to this trajectory's transformation.
|
inline |
Set this trajectory's transformation.
|
inline |
Return the linear velocity of this trajectory in world units per second.
|
inline |
Set the linear velocity of this trajectory in world units per second.
|
inline |
Return the angular velocity of this trajectory in radians per second.
|
inline |
Set the angular velocity of this trajectory in radians per second.