SetRotationFromQu aternion (SITransformation)

Description

Sets the rotation part of this transformation by using the quaternion representation.

Scripting Syntax

    SITransformation.SetRotationFromQuaternion( q )

C# Syntax

    SITransformation.SetRotationFromQuaternion( SIQuaternion in_pQuat );

Parameters

Parameter | Type | Description
q [in/out] | SIQuaternion | Quaternion operand

Examples

VBScript Example

    dim t1, q1
    ' Create transformation.
    set t1 = XSIMath.CreateTransform
    ' Create Quaternion.
    set q1 = XSIMath.CreateQuaternion
    'Do something on q1
    'Then use q1 to set the rotation part of t1
    t1.SetRotationFromQuaternion q1

See Also

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

Autodesk Softimage v7.5