Quaterniond.rotateAxis
- Quaterniond rotateAxis(double angle, double axisX, double axisY, double axisZ, Quaterniond dest)
- Quaterniond rotateAxis(double angle, Vector3d axis, Quaterniond dest)
- Quaterniond rotateAxis(double angle, Vector3d axis)
- Quaterniond rotateAxis(double angle, double axisX, double axisY, double axisZ)
struct Quaterniond
ref public return
rotateAxis
doml quaternion_d Quaterniond
constructorsfunctionsvariables
Apply a rotation to <code>this</code> quaternion rotating the given radians about the specified axis. <p> If <code>Q</code> is <code>this</code> quaternion and <code>R</code> the quaternion representing the specified rotation, then the new quaternion will be <code>Q * R</code>. So when transforming a vector <code>v</code> with the new quaternion by using <code>Q * R * v</code>, the rotation added by this method will be applied first!
@see #rotateAxis(double, double, double, double, Quaterniond)
@param angle the angle in radians to rotate about the specified axis @param axisX the x coordinate of the rotation axis @param axisY the y coordinate of the rotation axis @param axisZ the z coordinate of the rotation axis @return this