## SIRotation.SetFromQuaternion

### Description

Sets this rotation according the quaternion q.

### C# Syntax

    SIRotation.SetFromQuaternion( SIQuaternion in_pQuat );

### Scripting Syntax

    SIRotation.SetFromQuaternion( 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 quaternion
    r1.SetFromQuaternion q1

### See Also

SIRotation.GetQuaternion SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion