GetRotationAxisAng le (SITransformation)

Description

Extracts the axis and angle from the rotation part of this transformation.

Warning: This method doesn't work with scripting languages that don't support arguments passed by reference such as JScript. You must use SITransformation.GetRotationAxisAngle2 instead.

Scripting Syntax

    SITransformation.GetRotationAxisAngle( axis, angle )

C# Syntax

    SITransformation.GetRotationAxisAngle( SIVector3 io_pAxis, Object& io_pvarAngle );

Parameters

Parameter | Type | Description
axis [in/out] | SIVector3 | Axis of rotation
angle [in/out] | Floating Point value | Angle of rotation (in radians)

Examples

VBScript Example

    dim t1, axis
    ' Create transformation.
    set t1 = XSIMath.CreateTransform
    ' Create 3D vector.
    set axis = XSIMath.CreateVector3
    'Do something on t1
    t1.GetRotationAxisAngle axis, angle

See Also

SITransformation.SetRotationFromAxisAngle | SIVector3 | SIMatrix3 | SIMatrix4
SIRotation | SITransformation | SIQuaternion | SITransformation.GetRotationAxisAngle2

Autodesk Softimage v7.5