Xface Core Library: XMath::Quaternion Class Reference

XFace / XEngine / XMath

XMath::Quaternion Class Reference

#include <Quaternion.h>

List of all members.


Detailed Description

Author:
Koray Balci
Version:
1.0
Date:
May 2002
Quaternion class for robust 3D operations (rotation especially).
Note:
No inlining has been done yet. All the inlines and other optimizations are to be added in a later stage when we have a better understanding of bottlenecks.

Public Member Functions

QuaternionFromRotationMatrix (Matrix4 &mat)
Matrix4 ToRotationMatrix () const
void Identity ()
 Loads identity quaternion.
 Quaternion (float pitch, float yaw, float roll)
 Additional Constructor.
 Quaternion (float ix, float iy, float iz, float iw)
 Additional Constructor.
 Quaternion (const AxisAngle &axisAngle)
 Additional Constructor.
 Quaternion (const Quaternion &rhs)
 Copy Constructor.
 Quaternion ()
 Default Constructor.
Quaternionoperator= (const Quaternion &rhs)
 = operator overloaded
Quaternion operator * (const Quaternion &rhs) const
 * operator overloaded
Quaternion operator+ (const Quaternion &rhs) const
 + operator overloaded

Public Attributes

float x
 Data members.

Constructor & Destructor Documentation

XMath::Quaternion::Quaternion float  pitch,
float  yaw,
float  roll
 

Constructor for creating quaternion from euler angles

Parameters:
pitch angle for X axis in degrees
yaw angle for Y axis in degrees
roll angle for Z axis in degrees

XMath::Quaternion::Quaternion const AxisAngle &  axisAngle  ) 
 

Constructor for creating quaternion from axis angle representation

Parameters:
axisAngle axis-angle representation


Member Function Documentation

Quaternion & XMath::Quaternion::FromRotationMatrix Matrix4 mat  ) 
 

Passage between matrix->quaternion representation

Parameters:
mat A valid 4x4 rotation matrix

Matrix4 XMath::Quaternion::ToRotationMatrix  )  const
 

Passage between quaternion->matrix representation.

Returns:
A valid 4x4 rotation matrix.


The documentation for this class was generated from the following files:
  • Quaternion.h
  • Quaternion.cpp

Generated on Mon Aug 28 15:39:26 2006 for Xface Core Library by  doxygen 1.4.6-NO