VR-Link API Documentation for DIS
Public Member Functions | Protected Attributes
DtTaitBryan Class Reference

DtTaitBryans are used to represent orientation of an object, using a set of three Euler angles. More...

+ Collaboration diagram for DtTaitBryan:

List of all members.

Public Member Functions

 DtTaitBryan ()
 Creates a default DtTaitBryan which is initialized to 0,0,0.
 DtTaitBryan (double psi, double theta, double phi)
 Creates an object with initial passed values.
 DtTaitBryan (const DtTaitBryan &tait)
 copy constructor
 DtTaitBryan (const DtQuaternion &quat)
 create a Tait Bryan from a Quaternion
DtTaitBryanoperator= (const DtTaitBryan &tait)
 assignment operator
int operator== (const DtTaitBryan &other) const
 Get whether another DtTaitBryan equals this one.
int operator!= (const DtTaitBryan &other) const
 Get whether another DtTaitBryan does not equals this one.
DtString string () const
 returns a string representation of this object
void printDataToStream (std::ostream &str) const
get/sets the psi component of this object

get/sets the psi component of this object

DtFloat64 psi () const
void setPsi (DtFloat64 psi)
get/sets the theta component of this object
DtFloat64 theta () const
void setTheta (DtFloat64 theta)
get/sets the phi component of this object
DtFloat64 phi () const
void setPhi (DtFloat64 phi)

Protected Attributes

DtFloat64 myPsi
DtFloat64 myTheta
 about reference z
DtFloat64 myPhi
 about intermediate y

Detailed Description

DtTaitBryans are used to represent orientation of an object, using a set of three Euler angles.

To represent an orientation of an entity, a set of three rotations are used. The three rotations used by DIS and RPR FOM are called the Tait-Bryan sequence, where the first rotation is about the Z axis, the second is about the new Y axis and the third is about the newest X axis. The three angles are usually denoted by psi, theta, and phi respectively.

Please note that the three angles to not correspond to the familiar heading, pitch and roll of an entity except when the reference coordinate system is topographic.

This class contains no virtual functions and many inline functions because it is used extensively through out VR-Link and needs to be fast. It is not intended to be subclassed


Constructor & Destructor Documentation

Creates a default DtTaitBryan which is initialized to 0,0,0.

DtTaitBryan::DtTaitBryan ( double  psi,
double  theta,
double  phi 
)

Creates an object with initial passed values.

copy constructor

create a Tait Bryan from a Quaternion

Warning, this computation is expensive. Its always better to stay in Quat


Member Function Documentation

int DtTaitBryan::operator!= ( const DtTaitBryan other) const

Get whether another DtTaitBryan does not equals this one.

Warning: This tests floats for equality, and may be subject to round off errors

DtTaitBryan& DtTaitBryan::operator= ( const DtTaitBryan tait)

assignment operator

int DtTaitBryan::operator== ( const DtTaitBryan other) const

Get whether another DtTaitBryan equals this one.

Warning: This tests floats for equality, and may be subject to round off errors

void DtTaitBryan::printDataToStream ( std::ostream &  str) const

returns a string representation of this object


Member Data Documentation

about intermediate y

about reference z


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)