## SIRotation.GetQuaternion

### Description

Extracts the quaternion values from this rotation inside the quaternion q.

### C# Syntax

    SIRotation.GetQuaternion( SIQuaternion io_pQuat );

### Scripting Syntax

    SIRotation.GetQuaternion( q );

### 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 rotation
    r1.GetQuaternion q1

### See Also

SIRotation.SetFromQuaternion SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion