VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
DtQuaternion Class Reference

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

+ Collaboration diagram for DtQuaternion:

Public Member Functions

 DtQuaternion ()
 create an empty quaternion (w = x = y = z = 0) More...
 
 DtQuaternion (double w, double x, double y, double z)
 create an initialized quaternion More...
 
 DtQuaternion (const DtQuaternion &other)
 copy ctor More...
 
 DtQuaternion (const DtTaitBryan &tb)
 Converts TaitBryan class to a Quaternion. More...
 
DtQuaternionoperator= (const DtQuaternion &other)
 Assignment operator. More...
 
DtString string () const
 Returns a DtString representation of this object. More...
 
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. More...
 
double DtQ1
 W. More...
 
double DtQ2
 X. More...
 
double DtQ3
 Y. More...
 

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

DtQuaternion::DtQuaternion ( )

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

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

create an initialized quaternion

DtQuaternion::DtQuaternion ( const DtQuaternion other)

copy ctor

DtQuaternion::DtQuaternion ( const DtTaitBryan tb)

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
DtString DtQuaternion::string ( ) const

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

double DtQuaternion::DtQ0

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

double DtQuaternion::DtQ1

W.

double DtQuaternion::DtQ2

X.

double DtQuaternion::DtQ3

Y.


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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)