#include <orientation.h>
Public Member Functions | |
void | getAxisRotation (float &radians, float &x, float &y, float &z) |
Orientation3D | operator- () const |
Orientation3D | operator+ (const Orientation3D &o) const |
Orientation3D | operator- (const Orientation3D &o) const |
Orientation3D & | operator+= (const Rotation3D &o) |
Orientation3D & | operator-= (const Rotation3D &o) |
Vector3D | operator* (const Vector3D &v) const |
Vector3D | transform (const Vector3D &v) const |
Vector3D | inverseTransform (const Vector3D &v) const |
Static Public Member Functions | |
static Orientation3D | random () |
Orientation3D physics::Orientation3D::random | ( | ) | [inline, static] |
Creates a random orientation.
void physics::Orientation3D::getAxisRotation | ( | float & | radians, | |
float & | x, | |||
float & | y, | |||
float & | z | |||
) |
Get this orientation as a rotation about some axis.
Orientation3D physics::Orientation3D::operator- | ( | ) | const [inline] |
Get the negation of this orientation (the same value in the opposite direction).
Orientation3D physics::Orientation3D::operator+ | ( | const Orientation3D & | o | ) | const [inline] |
Combine two orientations.
Orientation3D physics::Orientation3D::operator- | ( | const Orientation3D & | o | ) | const [inline] |
Get a relative orientation.
Orientation3D & physics::Orientation3D::operator+= | ( | const Rotation3D & | o | ) | [inline] |
Rotate this orientation. A Rotation object in this context is just a change of orientation.
Orientation3D & physics::Orientation3D::operator-= | ( | const Rotation3D & | o | ) | [inline] |
Rotate this orientation in the opposite direction. A Rotation object in this context is just a change of orientation.
Transform a point by this orientation.
Rotate a point using this orientation.
Rotate a point in the opposite direction to this orientation.