Atlas Sim Interface
1.0
|
The AtlasVec3f class is a light-weight 3 vector. More...
#include <AtlasVectorTypes.h>
The AtlasVec3f class is a light-weight 3 vector.
Public Member Functions | |
AtlasVec3f () | |
AtlasVec3f (float initial_value) | |
Constructor. All vector values initialized to passed value. | |
AtlasVec3f (float x, float y, float z) | |
Constructor. Vector values initialized to passed values. | |
float | x () const |
x value if vector is interpreted as position | |
float | y () const |
y value of position | |
float | z () const |
z value of position | |
void | set_x (float f) |
set x value of position | |
void | set_y (float f) |
set y value of position | |
void | set_z (float f) |
set z value of position | |
float | rz () |
z axis rotation if vector is interpreted as euler angle set | |
float | rx () |
x axis rotation of euler angle set | |
float | ry () |
y axis rotation of euler angle set | |
void | set_rz (float f) |
set z axis rotation of euler angle | |
void | set_rx (float f) |
set x axis rotation of euler angle | |
void | set_ry (float f) |
set y axis rotation of euler angle | |
float | yaw () |
z axis rotation if vector is interpreted as euler angle set | |
float | roll () |
x axis rotation of euler angle set | |
float | pitch () |
y axis rotation of euler angle set | |
void | set_yaw (float f) |
set z axis rotation of euler angle | |
void | set_roll (float f) |
set x axis rotation of euler angle | |
void | set_pitch (float f) |
set y axis rotation of euler angle | |
Public Attributes | |
float | n [3] |
Current vector values. Can be accessed directly or through accessor functions. |
AtlasVec3f::AtlasVec3f | ( | ) | [inline] |
Default constructor. Vector values are uninitialized.
AtlasVec3f::AtlasVec3f | ( | float | initial_value | ) | [inline] |
Constructor. All vector values initialized to passed value.
[in] | initial_value | - initial value of all vector values |
AtlasVec3f::AtlasVec3f | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Constructor. Vector values initialized to passed values.
[in] | x | - 1st vector value |
[in] | y | - 2nd vector value |
[in] | z | - 3rd vector value |
float AtlasVec3f::x | ( | ) | const [inline] |
x value if vector is interpreted as position
float AtlasVec3f::y | ( | ) | const [inline] |
y value of position
float AtlasVec3f::z | ( | ) | const [inline] |
z value of position
void AtlasVec3f::set_x | ( | float | f | ) | [inline] |
set x value of position
void AtlasVec3f::set_y | ( | float | f | ) | [inline] |
set y value of position
void AtlasVec3f::set_z | ( | float | f | ) | [inline] |
set z value of position
float AtlasVec3f::rz | ( | ) | [inline] |
z axis rotation if vector is interpreted as euler angle set
float AtlasVec3f::rx | ( | ) | [inline] |
x axis rotation of euler angle set
float AtlasVec3f::ry | ( | ) | [inline] |
y axis rotation of euler angle set
void AtlasVec3f::set_rz | ( | float | f | ) | [inline] |
set z axis rotation of euler angle
void AtlasVec3f::set_rx | ( | float | f | ) | [inline] |
set x axis rotation of euler angle
void AtlasVec3f::set_ry | ( | float | f | ) | [inline] |
set y axis rotation of euler angle
float AtlasVec3f::yaw | ( | ) | [inline] |
z axis rotation if vector is interpreted as euler angle set
float AtlasVec3f::roll | ( | ) | [inline] |
x axis rotation of euler angle set
float AtlasVec3f::pitch | ( | ) | [inline] |
y axis rotation of euler angle set
void AtlasVec3f::set_yaw | ( | float | f | ) | [inline] |
set z axis rotation of euler angle
void AtlasVec3f::set_roll | ( | float | f | ) | [inline] |
set x axis rotation of euler angle
void AtlasVec3f::set_pitch | ( | float | f | ) | [inline] |
set y axis rotation of euler angle
float AtlasVec3f::n[3] |
Current vector values. Can be accessed directly or through accessor functions.