SITransformation.GetRotationAxisAngle

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.

C# Syntax

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

Scripting Syntax

SITransformation.GetRotationAxisAngle( io_pAxis, io_pvarAngle );

Parameters

Parameter Type Description
io_pAxis SIVector3 Axis of rotation
io_pvarAngle 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