SetRotationFromAxi sAngle (SITransformation)

Description

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

Scripting Syntax

    SITransformation.SetRotationFromAxisAngle( axis, angle )

C# Syntax

    SITransformation.SetRotationFromAxisAngle( 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 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 |

Autodesk Softimage v7.5