GetAxisAngle (SIRotation)
Description
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.
Scripting Syntax
SIRotation.GetAxisAngle( axis, angle )
C# Syntax
SIRotation.GetAxisAngle( SIVector3 io_pAxis, Object& io_pvarAngle );Parameters
|
Parameter |
Type |
Description |
|
axis [in/out] |
Axis of rotation |
|
|
angle [in/out] |
Floating point value |
Angle of rotation (in radians) |
Examples
VBScript Example
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
See Also
Autodesk Softimage v7.5