Get (SIQuaternion)

Description

Returns the W, X, Y and Z values of this quaternion.

Note: This method uses output arguments. C# and some scripting languages (such as JScript and PerlScript) don't support arguments passed by reference. However, there is a alternate version of this method which is considered safe to use with C#, JScript and PerlScript: SIQuaternion.Get2.

Scripting Syntax

    SIQuaternion.Get( W, X, Y, Z )

C# Syntax

    SIQuaternion.Get( Object& out_pvarW, Object& out_pvarX, Object& out_pvarY, Object& out_pvarZ );

Parameters

Parameter | Type | Description
W [out] | Floating Point value | W value to set in this quaternion
X [out] | Floating Point value | X value to set in this quaternion
Y [out] | Floating Point value | Y value to set in this quaternion
Z [out] | Floating Point value | Z value to set in this quaternion

Examples

VBScript Example

    dim q1
    ' Create Quaternion.
    set q1 = XSIMath.CreateQuaternion
    q1.Get 1.3, 2.4, 4.3, 5.4
    q1.Get w, x, y, z
    msgbox w

See Also

SIQuaternion.SetIdentity | SIVector3 | SIMatrix3 | SIMatrix4
SIRotation | SITransformation | SIQuaternion | SIQuaternion.Get2

Autodesk Softimage v7.5