SIRotation.GetAxisAngle
 
 
 

SIRotation.GetAxisAngle

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.

C# Syntax

SIRotation.GetAxisAngle( SIVector3 io_pAxis, Object& io_pvarAngle );

Scripting Syntax

SIRotation.GetAxisAngle( axis, angle );

Parameters

Parameter Type Description
axis SIVector3 Axis of rotation
angle 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

SIRotation.SetFromAxisAngle SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion SIRotation.GetAxisAngle2