Quaternion(3)

NAME
Quaternion

SYNOPSIS

#include <Quaternion.h>

  Public Member Functions
Quaternion ()
Quaternion (const double scalar)
Quaternion (const double scalar, const double x, const double y, const double z)
Quaternion (const Quaternion &q)
template<typename Type > Quaternion (const Vector3< Type > &vector)
template<typename Type > Quaternion (const double scalar, const Vector3< Type > &vector)
template<typename Type > Quaternion (Vector3< Type > &axis, double angle)
template<typename Type1 , typename Type2 > Quaternion (Vector3< Type1 > &from_vec, Vector3< Type2 > &to_vec)
Quaternion operator= (const Quaternion q)
Quaternion operator- ()
Quaternion operator+= (const Quaternion &q)
Quaternion operator+ (const Quaternion &q)
Quaternion operator-= (const Quaternion &q)
Quaternion operator- (const Quaternion &q)
Quaternion operator *= (const Quaternion &q)
Quaternion operator * (const Quaternion &q)
Quaternion operator/= (const double d)
Quaternion operator/ (const double d)
double & operator[] (long i)
double scalar ()
double angle ()
Vector3< double > axis ()
double norm ()
double norm2 ()
double normalize ()
Quaternion conj ()
double invert ()
Quaternion inverse ()
Quaternion rotate (const Quaternion &point)

Detailed Description

Definition at line 25 of file Quaternion.h.

Constructor & Destructor Documentation

  Quaternion::Quaternion () [inline]

Definition at line 43 of file Quaternion.h.

  Quaternion::Quaternion (const double scalar) [inline]

Definition at line 44 of file Quaternion.h.

  Quaternion::Quaternion (const double scalar, const double x, const double y, const double z) [inline]

Definition at line 47 of file Quaternion.h.

  Quaternion::Quaternion (const Quaternion & q) [inline]

Definition at line 51 of file Quaternion.h.

  template<typename Type > Quaternion::Quaternion (const Vector3< Type > & vector) [inline]

Definition at line 55 of file Quaternion.h.

  template<typename Type > Quaternion::Quaternion (const double scalar, const Vector3< Type > & vector) [inline]

Definition at line 61 of file Quaternion.h.

  template<typename Type > Quaternion::Quaternion (Vector3< Type > & axis, double angle) [inline]

Definition at line 67 of file Quaternion.h.

  template<typename Type1 , typename Type2 > Quaternion::Quaternion (Vector3< Type1 > & from_vec, Vector3< Type2 > & to_vec) [inline]

Definition at line 71 of file Quaternion.h.

Member Function Documentation

  double Quaternion::angle () [inline]

Definition at line 143 of file Quaternion.h.

  Vector3<double> Quaternion::axis () [inline]

Definition at line 144 of file Quaternion.h.

  Quaternion Quaternion::conj () [inline]

Definition at line 160 of file Quaternion.h.

  Quaternion Quaternion::inverse () [inline]

Definition at line 168 of file Quaternion.h.

  double Quaternion::invert () [inline]

Definition at line 161 of file Quaternion.h.

  double Quaternion::norm () [inline]

Definition at line 149 of file Quaternion.h.

  double Quaternion::norm2 () [inline]

Definition at line 150 of file Quaternion.h.

  double Quaternion::normalize () [inline]

Definition at line 151 of file Quaternion.h.

  Quaternion Quaternion::operator * (const Quaternion & q) [inline]

Definition at line 117 of file Quaternion.h.

  Quaternion Quaternion::operator *= (const Quaternion & q) [inline]

Definition at line 113 of file Quaternion.h.

  Quaternion Quaternion::operator+ (const Quaternion & q) [inline]

Definition at line 101 of file Quaternion.h.

  Quaternion Quaternion::operator+= (const Quaternion & q) [inline]

Definition at line 97 of file Quaternion.h.

  Quaternion Quaternion::operator- () [inline]

Definition at line 93 of file Quaternion.h.

  Quaternion Quaternion::operator- (const Quaternion & q) [inline]

Definition at line 109 of file Quaternion.h.

  Quaternion Quaternion::operator-= (const Quaternion & q) [inline]

Definition at line 105 of file Quaternion.h.

  Quaternion Quaternion::operator/ (const double d) [inline]

Definition at line 132 of file Quaternion.h.

  Quaternion Quaternion::operator/= (const double d) [inline]

Definition at line 125 of file Quaternion.h.

  Quaternion Quaternion::operator= (const Quaternion q) [inline]

Definition at line 89 of file Quaternion.h.

  double& Quaternion::operator[] (long i) [inline]

Definition at line 137 of file Quaternion.h.

  Quaternion Quaternion::rotate (const Quaternion & point) [inline]

Definition at line 173 of file Quaternion.h.

  double Quaternion::scalar () [inline]

Definition at line 142 of file Quaternion.h.

Author

Generated automatically by Doxygen for Bsoft from the source code.