Extracts the axis and angle from this rotation.
Note: This method uses output arguments. C# and some
scripting languages (such as JScript and PerlScript) don't support arguments passed by reference. However, there is a
alternate version of this method which is considered safe to use with C#, JScript and PerlScript:
SIRotation.GetAxisAngle2.
SIRotation.GetAxisAngle( SIVector3 io_pAxis, Object& io_pvarAngle ); |
SIRotation.GetAxisAngle( axis, angle ); |
Parameter | Type | Description |
---|---|---|
axis | SIVector3 | Axis of rotation |
angle | Floating point value | Angle of rotation (in radians) |
dim r1, axis ' Create rotation. set r1 = XSIMath.CreateRotation ' Create 3D vector. set axis = XSIMath.CreateVector3 'Do something on the roation r1.GetAxisAngle axis, angle |