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

Quaternions are used to represent orientation of an object. More...

+ Collaboration diagram for DtQuaternion:

List of all members.

Public Member Functions

 DtQuaternion ()
 create an empty quaternion (w = x = y = z = 0)
 DtQuaternion (double w, double x, double y, double z)
 create an initialized quaternion
 DtQuaternion (const DtQuaternion &other)
 copy ctor
 DtQuaternion (const DtTaitBryan &tb)
 Converts TaitBryan class to a Quaternion.
DtQuaternionoperator= (const DtQuaternion &other)
 Assignment operator.
DtString string () const
 Returns a DtString representation of this object.
void printDataToStream (std::ostream &str) const
double w () const
void setW (double w)
double x () const
void setX (double x)
double y () const
void setY (double y)
double z () const
void setZ (double z)

Public Attributes

double DtQ0
 This should be private, but they have been public for so long that we will keep it that way.
double DtQ1
 W.
double DtQ2
 X.
double DtQ3
 Y.

Detailed Description

Quaternions are used to represent orientation of an object.

They are more accurate than TaitBryan but not standardized by RPR or DIS.


Constructor & Destructor Documentation

create an empty quaternion (w = x = y = z = 0)

DtQuaternion::DtQuaternion ( double  w,
double  x,
double  y,
double  z 
)

create an initialized quaternion

copy ctor

Converts TaitBryan class to a Quaternion.


Member Function Documentation

DtQuaternion& DtQuaternion::operator= ( const DtQuaternion other)

Assignment operator.

void DtQuaternion::printDataToStream ( std::ostream &  str) const
void DtQuaternion::setW ( double  w) [inline]
void DtQuaternion::setX ( double  x) [inline]
void DtQuaternion::setY ( double  y) [inline]
void DtQuaternion::setZ ( double  z) [inline]

Returns a DtString representation of this object.

double DtQuaternion::w ( ) const [inline]
double DtQuaternion::x ( ) const [inline]
double DtQuaternion::y ( ) const [inline]
double DtQuaternion::z ( ) const [inline]

Member Data Documentation

This should be private, but they have been public for so long that we will keep it that way.

W.

X.

Y.


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)