SIQuaternion.Get

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.

C# Syntax

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

Scripting Syntax

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

Parameters

Parameter Type Description
W Floating Point value W value to set in this quaternion
X Floating Point value X value to set in this quaternion
Y Floating Point value Y value to set in this quaternion
Z 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