SIRotation.SetFromAxisAngle
 
 
 

SIRotation.SetFromAxisAngle

Description

Sets this rotation according to the axis and angle parameters.

C# Syntax

SIRotation.SetFromAxisAngle( SIVector3 in_pAxis, Double in_dAngle );

Scripting Syntax

SIRotation.SetFromAxisAngle( axis, angle );

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