SetFromAxisAngle (SIRotation)
Description
Sets this rotation according to the axis and angle parameters.
Scripting Syntax
SIRotation.SetFromAxisAngle( axis, angle )
C# Syntax
SIRotation.SetFromAxisAngle( SIVector3 in_pAxis, Double in_dAngle );
Parameters
|
Parameter |
Type |
Description |
|
axis |
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(1.0, 0.0, 0.0) r1.SetFromAxisAngle axis, 1.5
See Also
|
|
SOFTIMAGE|XSI v6.01