Properties | |
Number | w |
Number | x |
Number | y |
Number | z |
Constructors | |
DzQuat (Number q0, Number q1, Number q2, Number q3) | |
DzQuat (DzQuat quat) | |
DzQuat () | |
Methods | |
DzVec3 | getValue (Number axis0, Number axis1, Number axis2) |
DzVec3 | getXAxis () |
DzVec3 | getYAxis () |
DzVec3 | getZAxis () |
DzQuat | inverse () |
void | invert () |
Boolean | isIdentity () |
void | makeClosest (DzQuat rot) |
void | makeIdentity () |
DzQuat | multiply (DzQuat rot) |
DzVec3 | multVec (DzVec3 vec) |
void | normalize () |
void | scaleAngle (Number scaleFactor) |
void | setValue (Number axis0, Number axis1, Number axis2, DzVec3 angles) |
void | setValue (Number axis, Number radians) |
void | setValue (DzVec3 axis, Number radians) |
void | setValue (Number q0, Number q1, Number q2, Number q3) |
DzQuat::DzQuat | ( | ) |
Default Contructor. Creates an uninitialized quaternion
DzQuat::DzQuat | ( | DzQuat | quat | ) |
Copy Contructor.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Initialize with 4-component quaternion.
DzVec3 DzQuat::getXAxis | ( | ) |
DzVec3 DzQuat::getYAxis | ( | ) |
DzVec3 DzQuat::getZAxis | ( | ) |
DzQuat DzQuat::inverse | ( | ) |
void DzQuat::invert | ( | ) |
Sets the quaternion to its inverse.
Boolean DzQuat::isIdentity | ( | ) |
void DzQuat::makeClosest | ( | DzQuat | rot | ) |
Makes sure that this rotation lies on the same side of the hypershpere as the one given. If not, it is altered to do so.
void DzQuat::makeIdentity | ( | ) |
Sets the quaternion to the identity quaternion.
void DzQuat::normalize | ( | ) |
Normalizes the quaternion.
void DzQuat::scaleAngle | ( | Number | scaleFactor | ) |
Keep the axis the same. Multiply the angle of rotation by the amount 'scaleFactor'
Sets the quaternion to a rotation of angles around each axis given the rotation order (axis0, axis1, axis2) where axis == 0:x, 1:y, 2:z
Sets the quaternion to a rotation of radians around the given axis ( axis == 0:x, 1:y, 2:z )
Sets the quaternion to a rotation of radians around the given axis
Sets the quaternion to the given values