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.
Object SITransformation.GetRotationAxisAngle2( SIVector3 io_pAxis ); |
oFloat = SITransformation.GetRotationAxisAngle2( io_pAxis ); |
The angle Float value.
Parameter | Type | Description |
---|---|---|
io_pAxis | SIVector3 | Axis of rotation |
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 ); |