SITransformation.SetRotationFromAxisAngle

Description

Sets the rotation part of this transformation by using the axis/angle representation.

Scripting Syntax

SITransformation.SetRotationFromAxisAngle( in_pAxis, in_dAngle );

Parameters

Parameter Type Description
in_pAxis SIVector3 Axis of rotation
in_dAngle 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
axis.Set 1.0, 0.0, 0.0
t1.SetRotationFromAxisAngle axis, 1.5

See Also

SITransformation.GetRotationAxisAngle SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion