Atlas Sim Interface  1.0
Public Member Functions | Public Attributes
AtlasVec3f Class Reference

The AtlasVec3f class is a light-weight 3 vector. More...

#include <AtlasVectorTypes.h>


Detailed Description

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.

Constructor & Destructor Documentation

AtlasVec3f::AtlasVec3f ( ) [inline]
Description :

Default constructor. Vector values are uninitialized.

AtlasVec3f::AtlasVec3f ( float  initial_value) [inline]

Constructor. All vector values initialized to passed value.

Parameters:
[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.

Parameters:
[in]x- 1st vector value
[in]y- 2nd vector value
[in]z- 3rd vector value

Member Function Documentation

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


Member Data Documentation

float AtlasVec3f::n[3]

Current vector values. Can be accessed directly or through accessor functions.