class Quat

Mathematical quaternion class.

Public Methods

[more] Quat()
Constructor
[more] Quat(double* array)
Array constructor.
[more] Quat(double a, double b, double c, double d)
Element constructor.
[more]bool operator==(const Quat &q) const
Equal.
[more]bool operator!=(const Quat &q) const
Unequal.
[more]Quat& operator=(const Quat &q)
Assignment.
[more]Quat& operator*(const Quat &q) const
Multiplication.
[more]Quat& operator+(const Quat &q) const
Addition.
[more]Quat& operator-(const Quat &q) const
Subtraction.
[more]Quat& operator*=(const Quat &q)
Multiplication=.
[more]Quat& operator+=(const Quat &q)
Addition=.
[more]Quat& inv() const
Inversion.
[more]double abs() const
Norm.
[more]double* get_vec() const
Get the coordinate vector.
[more]Quat& f(const Quat &c)
Quadratic iteration function.
[more]Quat& g(const Quat &c)
Cubic iteration function.


Documentation

Mathematical quaternion class. This class provides a mathematical interface to a Hamiltonian quaternion.
o Quat()
Constructor

o Quat(double* array)
Array constructor. Accepting the 4 doubles saved in an array.

o Quat(double a, double b, double c, double d)
Element constructor. Accepting the 4 doubles given separately.

obool operator==(const Quat &q) const
Equal. this == q ?

obool operator!=(const Quat &q) const
Unequal. this != q ?

oQuat& operator=(const Quat &q)
Assignment. this = q

oQuat& operator*(const Quat &q) const
Multiplication. this * q

oQuat& operator+(const Quat &q) const
Addition. this + q

oQuat& operator-(const Quat &q) const
Subtraction. this - q

oQuat& operator*=(const Quat &q)
Multiplication=. this *= q

oQuat& operator+=(const Quat &q)
Addition=. this += q

oQuat& inv() const
Inversion. (this)^(-1)

odouble abs() const
Norm. ||this||

odouble* get_vec() const
Get the coordinate vector.

oQuat& f(const Quat &c)
Quadratic iteration function. (this)^2 + c

oQuat& 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++.