dtHLAGM::VelocityVector Class Reference

A DIS/RPR-FOM velocity vector type. More...

#include <distypes.h>

List of all members.

Public Member Functions

 VelocityVector (float x=0.0f, float y=0.0f, float z=0.0f)
 Constructor.
 VelocityVector (const osg::Vec3f &copyVec)
 Allow the superclass copy constructor.
size_t EncodedLength () const
 Returns the encoded length of this object.
void Encode (char *buf) const
 Encodes this object into the specified buffer.
void Decode (const char *buf)
 Decodes the values contained in the specified buffer.
void SetX (float x)
 Sets the value of the x field.
float GetX () const
 Returns the value of the x field.
void SetY (float y)
 Sets the value of the y field.
float GetY () const
 Returns the value of the y field.
void SetZ (float z)
 Sets the value of the z field.
float GetZ () const
 Returns the value of the z field.


Detailed Description

A DIS/RPR-FOM velocity vector type.

Constructor & Destructor Documentation

dtHLAGM::VelocityVector::VelocityVector ( float  x = 0.0f,
float  y = 0.0f,
float  z = 0.0f 
)

Constructor.

Parameters:
x the value of the x field
y the value of the y field
z the value of the z field

dtHLAGM::VelocityVector::VelocityVector ( const osg::Vec3f &  copyVec  )  [inline]

Allow the superclass copy constructor.


Member Function Documentation

size_t dtHLAGM::VelocityVector::EncodedLength (  )  const

Returns the encoded length of this object.

Returns:
the encoded length of this object, in bytes

void dtHLAGM::VelocityVector::Encode ( char *  buf  )  const

Encodes this object into the specified buffer.

Parameters:
buf the buffer to contain the encoded object

void dtHLAGM::VelocityVector::Decode ( const char *  buf  ) 

Decodes the values contained in the specified buffer.

Parameters:
buf the buffer containing the encoded object

void dtHLAGM::VelocityVector::SetX ( float  newX  ) 

Sets the value of the x field.

Parameters:
psi the value of the x field

float dtHLAGM::VelocityVector::GetX (  )  const

Returns the value of the x field.

Returns:
the value of the x field

void dtHLAGM::VelocityVector::SetY ( float  newY  ) 

Sets the value of the y field.

Parameters:
theta the value of the y field

float dtHLAGM::VelocityVector::GetY (  )  const

Returns the value of the y field.

Returns:
the value of the y field

void dtHLAGM::VelocityVector::SetZ ( float  newZ  ) 

Sets the value of the z field.

Parameters:
phi the value of the z field

float dtHLAGM::VelocityVector::GetZ (  )  const

Returns the value of the z field.

Returns:
the value of the z field


http://www.delta3d.org
2.0.0 generated 14 Feb 2008