$search

collision_checking::OBB::SimpleQuaternion Struct Reference

Simple quaternion class used in OBB. More...

List of all members.

Public Member Functions

BVH_REAL dot (const SimpleQuaternion &other) const
 Dot product between two quaternions.
void fromRotation (const Vec3f axis[3])
 Transform a matrix into quaternion.
SimpleQuaternion operator* (BVH_REAL t) const
 Scalar multiplication of a quaternion.
SimpleQuaternion operator+ (const SimpleQuaternion &other) const
 Addition of two quaternions.
SimpleQuaternion operator- () const
 Minus of two quaternions.
 SimpleQuaternion (BVH_REAL a, BVH_REAL b, BVH_REAL c, BVH_REAL d)
 SimpleQuaternion ()
void toRotation (Vec3f axis[3]) const
 Transform a quaternion into matrix.

Private Attributes

BVH_REAL data [4]

Detailed Description

Simple quaternion class used in OBB.

Definition at line 54 of file obb.h.


Constructor & Destructor Documentation

collision_checking::OBB::SimpleQuaternion::SimpleQuaternion (  ) 

Definition at line 41 of file obb.cpp.

collision_checking::OBB::SimpleQuaternion::SimpleQuaternion ( BVH_REAL  a,
BVH_REAL  b,
BVH_REAL  c,
BVH_REAL  d 
)

Definition at line 43 of file obb.cpp.


Member Function Documentation

BVH_REAL collision_checking::OBB::SimpleQuaternion::dot ( const SimpleQuaternion other  )  const

Dot product between two quaternions.

Definition at line 116 of file obb.cpp.

void collision_checking::OBB::SimpleQuaternion::fromRotation ( const Vec3f  axis[3]  ) 

Transform a matrix into quaternion.

Definition at line 51 of file obb.cpp.

OBB::SimpleQuaternion collision_checking::OBB::SimpleQuaternion::operator* ( BVH_REAL  t  )  const

Scalar multiplication of a quaternion.

Definition at line 132 of file obb.cpp.

OBB::SimpleQuaternion collision_checking::OBB::SimpleQuaternion::operator+ ( const SimpleQuaternion other  )  const

Addition of two quaternions.

Definition at line 121 of file obb.cpp.

OBB::SimpleQuaternion collision_checking::OBB::SimpleQuaternion::operator- ( void   )  const

Minus of two quaternions.

Definition at line 127 of file obb.cpp.

void collision_checking::OBB::SimpleQuaternion::toRotation ( Vec3f  axis[3]  )  const

Transform a quaternion into matrix.

Definition at line 96 of file obb.cpp.


Member Data Documentation

Definition at line 79 of file obb.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


collision_checking
Author(s): Jia Pan, Dinesh Manocha (UNC, Chapel Hill)
autogenerated on Fri Mar 1 14:57:01 2013