#include <spatial.h>
Public Member Functions | |
| Spatial (bool littleEndian=false) | |
| creates a spatial. | |
| virtual | ~Spatial () |
| char | GetDeadReckoningAlgorithm () const |
| void | SetDeadReckoningAlgorithm (char newAlgorithm) |
| bool | IsFrozen () const |
| void | SetFrozen (bool newFrozen) |
| WorldCoordinate & | GetWorldCoordinate () |
| const WorldCoordinate & | GetWorldCoordinate () const |
| EulerAngles & | GetOrientation () |
| const EulerAngles & | GetOrientation () const |
| VelocityVector & | GetVelocity () |
| const VelocityVector & | GetVelocity () const |
| VelocityVector & | GetAcceleration () |
| const VelocityVector & | GetAcceleration () const |
| VelocityVector & | GetAngularVelocity () |
| const VelocityVector & | GetAngularVelocity () const |
| bool | HasVelocity () const |
| |
| bool | HasAcceleration () const |
| |
| bool | HasAngularVelocity () const |
| |
| size_t | Encode (char *buffer, size_t maxSize) |
| Fills the given buffer with the encoded version of this struct. | |
| bool | Decode (const char *buffer, size_t size) |
| Decodes the data in the buffer, filling this structure. | |
This structure holds position, orientation, and motion data and the suggested dead-reckoning algorithm. The data is the encoded structure changes based on the dead-reckoning algorithm chosen.
| dtHLAGM::Spatial::Spatial | ( | bool | littleEndian = false |
) |
creates a spatial.
| littleEndian | true to encode/decode in little endian. False for big endian. |
| dtHLAGM::Spatial::~Spatial | ( | ) | [virtual] |
| char dtHLAGM::Spatial::GetDeadReckoningAlgorithm | ( | ) | const [inline] |
| void dtHLAGM::Spatial::SetDeadReckoningAlgorithm | ( | char | newAlgorithm | ) | [inline] |
| bool dtHLAGM::Spatial::IsFrozen | ( | ) | const [inline] |
| void dtHLAGM::Spatial::SetFrozen | ( | bool | newFrozen | ) | [inline] |
| WorldCoordinate & dtHLAGM::Spatial::GetWorldCoordinate | ( | ) |
| const WorldCoordinate & dtHLAGM::Spatial::GetWorldCoordinate | ( | ) | const |
| EulerAngles & dtHLAGM::Spatial::GetOrientation | ( | ) |
| const EulerAngles & dtHLAGM::Spatial::GetOrientation | ( | ) | const |
| VelocityVector & dtHLAGM::Spatial::GetVelocity | ( | ) |
| const VelocityVector & dtHLAGM::Spatial::GetVelocity | ( | ) | const |
| VelocityVector & dtHLAGM::Spatial::GetAcceleration | ( | ) |
| const VelocityVector & dtHLAGM::Spatial::GetAcceleration | ( | ) | const |
| VelocityVector & dtHLAGM::Spatial::GetAngularVelocity | ( | ) |
| const VelocityVector & dtHLAGM::Spatial::GetAngularVelocity | ( | ) | const |
| bool dtHLAGM::Spatial::HasVelocity | ( | ) | const |
| bool dtHLAGM::Spatial::HasAcceleration | ( | ) | const |
| bool dtHLAGM::Spatial::HasAngularVelocity | ( | ) | const |
| size_t dtHLAGM::Spatial::Encode | ( | char * | buffer, | |
| size_t | maxSize | |||
| ) |
Fills the given buffer with the encoded version of this struct.
| buffer | the buffer to fill. | |
| maxSize | the maximum size allocated in this buffer. |
| bool dtHLAGM::Spatial::Decode | ( | const char * | buffer, | |
| size_t | size | |||
| ) |
Decodes the data in the buffer, filling this structure.
| buffer | the buffer read data from. | |
| size | the size of the buffer. |
ewww, const cast, but the data stream won't use a non-const pointer.