I think I got it now: "rotate this quaternion" simply means multiplying this
quaternion by a rotational quaternion q
for a rotation around the y-axis. Hence,
rotateByAngleY(PI/2)
means this * q
, where q=(0, sin(PI/4),0,cos(PI/4))
.
this
is also a quaternion representing a rotation).
For actually applying the rotation we use rotateVector(...)
.
Free forum by Nabble | Edit this page |