ML Reference
ml::RotationField Class Reference

Field to encapsulate a vector of 4 double values representing a rotation with all properties of Vector4Field. More...

#include <mlFields.h>

Inheritance diagram for ml::RotationField:
ml::Vector4Field ml::Field

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file: