20 Managing Quaternions
Q3Quaternion_MatchReflection
function to match the orientation of a quaternion.
TQ3Quaternion *Q3Quaternion_MatchReflection ( const TQ3Quaternion *q1, const TQ3Quaternion *q2, TQ3Quaternion *result);q1
A quaternion.q2
A quaternion.result
On exit, a quaternion that is eitherq1
or the negative ofq1
, and that matches the orientation ofq2
.
Q3Quaternion_MatchReflection
function returns, as its function result and in the result
parameter, a quaternion that is either identical to the quaternion specified by the q1
parameter or is the negative of q1
, depending on whether q1
or its negative matches the orientation of the quaternion specified by the q2
parameter.
Let us know what you think of these prototype pages.
Generated with Harlequin WebMaker