This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofQuaternion.h
Go to the documentation of this file.
46 inline ofQuaternion(float angle1, const ofVec3f& axis1, float angle2, const ofVec3f& axis2, float angle3, const ofVec3f& axis3);
124 void makeRotate(float angle1, const ofVec3f& axis1, float angle2, const ofVec3f& axis2, float angle3, const ofVec3f& axis3);
221ofQuaternion::ofQuaternion(float angle1, const ofVec3f& axis1, float angle2, const ofVec3f& axis2, float angle3, const ofVec3f& axis3) {
The ofMatrix4x4 is the big class of the math part of openFrameworks.
Definition ofMatrix4x4.h:58
Definition ofQuaternion.h:27
bool zeroRotation() const
return true if the Quat represents a zero rotation, and therefore can be ignored in computations.
Definition ofQuaternion.h:343
friend std::ostream & operator<<(std::ostream &os, const ofQuaternion &q)
Definition ofQuaternion.cpp:313
const ofQuaternion inverse() const
Multiplicative inverse method.
Definition ofQuaternion.h:479
void makeRotate_original(const ofVec3f &vec1, const ofVec3f &vec2)
Definition ofQuaternion.cpp:163
const ofQuaternion operator-() const
returns the negative of the quaternion. calls operator -() on the Vec4
Definition ofQuaternion.h:455
ofVec3f getEuler() const
Calculate and return the rotation as euler angles.
Definition ofQuaternion.cpp:282
void slerp(float t, const ofQuaternion &from, const ofQuaternion &to)
Spherical Linear Interpolation.
Definition ofQuaternion.cpp:243
ofQuaternion & operator/=(float rhs)
Unary divide by scalar.
Definition ofQuaternion.h:397
const ofQuaternion operator-(const ofQuaternion &rhs) const
Binary subtraction.
Definition ofQuaternion.h:438
void makeRotate(float angle, float x, float y, float z)
Definition ofQuaternion.cpp:28
void getRotate(float &angle, float &x, float &y, float &z) const
Return the angle and vector components represented by the quaternion.
Definition ofQuaternion.cpp:220
ofQuaternion & operator+=(const ofQuaternion &rhs)
Unary addition.
Definition ofQuaternion.h:428
friend std::istream & operator>>(std::istream &is, ofQuaternion &q)
Definition ofQuaternion.cpp:320
float length() const
Length of the quaternion = sqrt(vec . vec)
Definition ofQuaternion.h:461
const ofQuaternion operator+(const ofQuaternion &rhs) const
Binary addition.
Definition ofQuaternion.h:421
ofQuaternion & operator*=(float rhs)
Unary multiply by scalar.
Definition ofQuaternion.h:356
ofQuaternion & operator-=(const ofQuaternion &rhs)
Unary subtraction.
Definition ofQuaternion.h:445
float length2() const
Length of the quaternion = vec . vec.
Definition ofQuaternion.h:467
const ofQuaternion operator*(float rhs) const
Multiply by scalar.
Definition ofQuaternion.h:350
ofQuaternion operator/(float rhs) const
Divide by scalar.
Definition ofQuaternion.h:390
ofVec3f getCrossed(const ofVec3f &vec) const
Returns the cross product (vector product) of this vector and 'vec'. This is a binary operation on tw...
Definition ofVec4f.h:11