GetRotationAxisAngle2 (SITransformation)
Description
Extracts the vector axis and angle from the rotation part of this transformation.
Note: This method must be used with scripting languages that don't support arguments passed by reference such as JScript. For more information on getting output arguments, see About Output Argument Arrays.
Scripting Syntax
SITransformation.GetRotationAxisAngle2( axis )
C# Syntax
Object SITransformation.GetRotationAxisAngle2( SIVector3 io_pAxis );Parameters
|
Parameter |
Type |
Description |
|
axis [in/out] |
Axis of rotation |
Return Value
The angle Float value.
Examples
JScript Example
var t, axis, angle
t = XSIMath.CreateTransform();
axis = XSIMath.CreateVector3();
angle = t.GetRotationAxisAngle2( axis );
Application.LogMessage( "Axis: " + axis.x +","+ axis.y +","+ axis.z );
Application.LogMessage( "Angle: " + angle );See Also
Autodesk Softimage v7.5