Collaboration diagram for Quaternion operators.:
|
Functions | |
| ostream & | H3D::ArithmeticTypes::operator<< (ostream &os, const Quaternion &q) |
| Function for printing a Quaternion to an ostream. | |
| bool | H3D::ArithmeticTypes::operator== (const Quaternion &q1, const Quaternion &q2) |
| Equality between two Quaternion instances. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const Quaternion &q1, const Quaternion &q2) |
| Multiplication of Quaternions. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const Quaternion &q, double d) |
| Multiplacation by a double. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const Quaternion &q, float d) |
| Multiplacation by a float. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const Quaternion &q, int d) |
| Multiplacation by an int. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const Quaternion &q, long d) |
| Multiplacation by a long. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const float &a, const Quaternion &b) |
| Multiplication with float. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const double &a, const Quaternion &b) |
| Multiplication with double. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const int &a, const Quaternion &b) |
| Multiplication with int. | |
| Quaternion | H3D::ArithmeticTypes::operator * (const long &a, const Quaternion &b) |
| Multiplication with long. | |
| Quaternion | H3D::ArithmeticTypes::operator+ (const Quaternion &q1, const Quaternion &q2) |
| Addition of Quaternions. | |
See also the template operators for more operators automatically defined from the explicit ones defined here.
|
||||||||||||
|
Multiplication of Quaternions. If q1 and q2 are unit quaternions, then return value will also be a unit quaternion. |
|
||||||||||||
|
Addition of Quaternions. The result is not necessarily a unit quaternion even if and are unit quaternion |
1.4.5