ML Reference
|
Field to encapsulate a vector of 4 double values representing a rotation with all properties of Vector4Field. More...
#include <mlFields.h>
Public Member Functions | |
RotationField (const std::string &name="") | |
Constructor: Create a field with name name to manage a vector of 4 double values interpreted as rotation. | |
void | setRotationValue (const Vector3 &vec, double angle) |
Set rotation as rotation axes and angle how much to rotate. | |
void | setRotationValue (const Rotation &rot) |
Sets rotation value by a rotation instance. | |
void | getRotationValue (Vector3 &vec, double &angle) const |
Returns rotation as vector and rotation angle. | |
Rotation | getRotationValue () const |
Returns rotation value as a rotation class instance. |
Field to encapsulate a vector of 4 double values representing a rotation with all properties of Vector4Field.
Definition at line 2635 of file mlFields.h.
ml::RotationField::RotationField | ( | const std::string & | name = "" | ) | [inline] |
Constructor: Create a field with name name to manage a vector of 4 double values interpreted as rotation.
Definition at line 2643 of file mlFields.h.
void ml::RotationField::getRotationValue | ( | Vector3 & | vec, |
double & | angle | ||
) | const |
Returns rotation as vector and rotation angle.
Rotation ml::RotationField::getRotationValue | ( | ) | const |
Returns rotation value as a rotation class instance.
void ml::RotationField::setRotationValue | ( | const Vector3 & | vec, |
double | angle | ||
) |
Set rotation as rotation axes and angle how much to rotate.
void ml::RotationField::setRotationValue | ( | const Rotation & | rot | ) |
Sets rotation value by a rotation instance.