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

SIVector3

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

SIRotation.GetAxisAngle

SIVector3

SIMatrix3

SIMatrix4

SIRotation

SITransformation

SIQuaternion

 



SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index