SetFromQuaternion (SIRotation)

Description

Sets this rotation according the quaternion q.

Scripting Syntax

    SIRotation.SetFromQuaternion( q )

C# Syntax

    SIRotation.SetFromQuaternion( SIQuaternion in_pQuat );

Parameters

Parameter | Type | Description
q | SIQuaternion | Quaternion operand

Examples

VBScript Example

    dim r1, q1
    ' Create rotation.
    set r1 = XSIMath.CreateRotation
    ' Create Quaternion.
    set q1 = XSIMath.CreateQuaternion
    'Do something on the quaternion
    r1.SetFromQuaternion q1

See Also

SIRotation.GetQuaternion | SIVector3 | SIMatrix3 | SIMatrix4
SIRotation | SITransformation | SIQuaternion |

Autodesk Softimage v7.5