float& operator [](long k); |
Returns a reference to the k-th component of a quaternion. The value of k must be 0, 1, 2, or 3.
|
const float& operator [](long k) const; |
Returns a constant reference to the k-th component of a quaternion. The value of k must be 0, 1, 2, or 3.
|
Quaternion& operator =(const Vector3D& v); |
Assigns the of v to the imaginary components x, y, and z of the quaternion. The real component w is set to 0.
|
Quaternion& operator =(float s); |
Sets the real component w of the quaternion to s, and sets the imaginary components x, y, and z to 0.
|
Quaternion& operator +=(const Quaternion& q); |
Adds the quaternion q.
|
Quaternion& operator +=(const Vector3D& v); |
Adds the vector v.
|
Quaternion& operator +=(float s); |
Adds the scalar s.
|
Quaternion& operator -=(const Quaternion& q); |
Subtracts the quaternion q.
|
Quaternion& operator -=(const Vector3D& v); |
Subtracts the vector v.
|
Quaternion& operator -=(float s); |
Subtracts the scalar s.
|
Quaternion& operator *=(const Quaternion& q); |
Multiplies by the quaternion q.
|
Quaternion& operator *=(const Vector3D& v); |
Multiplies by the vector v.
|
Quaternion& operator *=(float s); |
Multiplies by the scalar s.
|
Quaternion& operator /=(const Quaternion& q); |
Multiplies by the inverse of the quaternion q.
|
Quaternion& operator /=(const Vector3D& v); |
Multiplies by the inverse of the vector v.
|
Quaternion& operator /=(float s); |
Multiplies by the inverse of the scalar s.
|
Quaternion operator -(const Quaternion& q); |
Returns the negation of the quaternion q.
|
Quaternion operator +(const Quaternion& q1, const Quaternion& q2); |
Returns the sum of the quaternions q1 and q2.
|
Quaternion operator +(const Quaternion& q, const Vector3D& v); |
Returns the sum of the quaternion q and the vector v.
|
Quaternion operator +(const Vector3D& v, const Quaternion& q); |
Returns the sum of the vector v and the quaternion q.
|
Quaternion operator +(const Quaternion& q, float s); |
Returns the sum of the quaternion q and the scalar s.
|
Quaternion operator +(float s, const Quaternion& q); |
Returns the sum of the scalar s and the quaternion q.
|
Quaternion operator -(const Quaternion& q1, const Quaternion& q2); |
Returns the difference of the quaternions q1 and q2.
|
Quaternion operator -(const Quaternion& q, const Vector3D& v); |
Returns the difference of the quaternion q and the vector v.
|
Quaternion operator -(const Vector3D& v, const Quaternion& q); |
Returns the difference of the vector v and the quaternion q.
|
Quaternion operator -(const Quaternion& q, float s); |
Returns the difference of the quaternion q and the scalar s.
|
Quaternion operator -(float s, const Quaternion& q); |
Returns the difference of the scalar s and the quaternion q.
|
Quaternion operator *(const Quaternion& q1, const Quaternion& q2); |
Returns the product of the quaternions q1 and q2.
|
Quaternion operator *(const Quaternion& q, const Vector3D& v); |
Returns the product of the quaternion q and the vector v.
|
Quaternion operator *(const Vector3D& v, const Quaternion& q); |
Returns the product of the vector v and the quaternion q.
|
Quaternion operator *(const Quaternion& q, float s); |
Returns the product of the quaternion q and the scalar s.
|
Quaternion operator *(float s, const Quaternion& q); |
Returns the product of the scalar s and the quaternion q.
|
Quaternion operator /(const Quaternion& q1, const Quaternion& q2); |
Returns the quotient of the quaternions q1 and q2.
|
Quaternion operator /(const Quaternion& q, const Vector3D& v); |
Returns the quotient of the quaternion q and of the vector v.
|
Quaternion operator /(const Vector3D& v, const Quaternion& q); |
Returns the quotient of the vector v and the quaternion q.
|
Quaternion operator /(const Quaternion& q, float s); |
Returns the quotient of the quaternion q and the scalar s.
|
Quaternion operator /(float s, const Quaternion& q); |
Returns the quotient of the scalar s and the quaternion q.
|
bool operator ==(const Quaternion& q1, const Quaternion& q2); |
Returns a boolean value indicating the equality of the two quaternions q1 and q2.
|
bool operator ==(const Quaternion& q, const Vector3D& v); |
Returns a boolean value indicating the equality of the quaternion q and the vector v.
|
bool operator ==(const Vector3D& v, const Quaternion& q); |
Returns a boolean value indicating the equality of the vector v and the quaternion q.
|
bool operator ==(const Quaternion& q, float s); |
Returns a boolean value indicating the equality of the quaternion q and the scalar s.
|
bool operator ==(float s, const Quaternion& q); |
Returns a boolean value indicating the equality of the scalar a and the quaternion q.
|
bool operator !=(const Quaternion& q1, const Quaternion& q2); |
Returns a boolean value indicating the inequality of the two quaternions q1 and q2.
|
bool operator !=(const Quaternion& q, const Vector3D& v); |
Returns a boolean value indicating the inequality of the quaternion q and the vector v.
|
bool operator !=(const Vector3D& v, const Quaternion& q); |
Returns a boolean value indicating the inequality of the vector v and the quaternion q.
|
bool operator !=(const Quaternion& q, float s); |
Returns a boolean value indicating the inequality of the quaternion q and the scalar s.
|
bool operator !=(float s, const Quaternion& q); |
Returns a boolean value indicating the inequality of the scalar s and the quaternion q.
|
float Magnitude(const Quaternion& q); |
Returns the magnitude of a quaternion.
|
float SquaredMag(const Quaternion& q); |
Returns the squared magnitude of a quaternion.
|
Quaternion Conjugate(const Quaternion& q); |
Returns the conjugate of a quaternion.
|
Quaternion Inverse(const Quaternion& q); |
Returns the inverse of a quaternion.
|