Class | Fox::FXQuatd |
In: |
rdoc-sources/FXQuatd.rb
|
Parent: | FXVec4d |
Construct an FXQuatd from components.
x: | x [Float] |
y: | y [Float] |
z: | z [Float] |
width: | w [Float] |
Construct from Euler angles yaw (z), pitch (y) and roll (x).
roll: | roll angle in radians [Float] |
pitch: | pitch angle in radians [Float] |
yaw: | yaw angle in radians [Float] |
Return the rotation axis and angle for this quaternion, i.e.
axis, angle = aQuaternion.getAxisAngle()
where axis is an FXVec3d instance and angle is the angle of rotation in radians.
Obtain roll, pitch and yaw angles (in radians) from quaternion, e.g.
roll, pitch, yaw = aQuaternion.getRollPitchYaw()
Set quaternion from rotation axis and angle.
axis: | the rotation axis [FXVec3d] |
angle: | the rotation angle (in radians) [Float] |