Mathematical quaternion class.
Public Methods
-
Quat()
- Constructor
-
Quat(double* array)
- Array constructor.
-
Quat(double a, double b, double c, double d)
- Element constructor.
-
bool operator==(const Quat &q) const
- Equal.
-
bool operator!=(const Quat &q) const
- Unequal.
-
Quat& operator=(const Quat &q)
- Assignment.
-
Quat& operator*(const Quat &q) const
- Multiplication.
-
Quat& operator+(const Quat &q) const
- Addition.
-
Quat& operator-(const Quat &q) const
- Subtraction.
-
Quat& operator*=(const Quat &q)
- Multiplication=.
-
Quat& operator+=(const Quat &q)
- Addition=.
-
Quat& inv() const
- Inversion.
-
double abs() const
- Norm.
-
double* get_vec() const
- Get the coordinate vector.
-
Quat& f(const Quat &c)
- Quadratic iteration function.
-
Quat& g(const Quat &c)
- Cubic iteration function.
Documentation
Mathematical quaternion class. This class provides a mathematical
interface to a Hamiltonian quaternion.
- Quat()
- Constructor
- Quat(double* array)
- Array constructor. Accepting the 4 doubles saved in an array.
- Quat(double a, double b, double c, double d)
- Element constructor. Accepting the 4 doubles given separately.
- bool operator==(const Quat &q) const
- Equal. this == q ?
- bool operator!=(const Quat &q) const
- Unequal. this != q ?
- Quat& operator=(const Quat &q)
- Assignment. this = q
- Quat& operator*(const Quat &q) const
- Multiplication. this * q
- Quat& operator+(const Quat &q) const
- Addition. this + q
- Quat& operator-(const Quat &q) const
- Subtraction. this - q
- Quat& operator*=(const Quat &q)
- Multiplication=. this *= q
- Quat& operator+=(const Quat &q)
- Addition=. this += q
- Quat& inv() const
- Inversion. (this)^(-1)
- double abs() const
- Norm. ||this||
- double* get_vec() const
- Get the coordinate vector.
- Quat& f(const Quat &c)
- Quadratic iteration function. (this)^2 + c
- Quat& g(const Quat &c)
- Cubic iteration function. (this)^3 + c
- This class has no child classes.
Alphabetic index Hierarchy of classes
This page was generated with the help of DOC++.