SITransformation.GetRotationAxisAngle2

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.

C# Syntax

Object SITransformation.GetRotationAxisAngle2( SIVector3 io_pAxis );

Scripting Syntax

oFloat = SITransformation.GetRotationAxisAngle2( io_pAxis );

Return Value

The angle Float value.

Parameters

Parameter Type Description
io_pAxis SIVector3 Axis of rotation

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

SITransformation.GetRotationAxisAngle