## SIQuaternion.SetIdentity

### Description

Resets the quaternion back to the identity quaternion.

### C# Syntax

    SIQuaternion.SetIdentity();

### Scripting Syntax

    SIQuaternion.SetIdentity();

### Examples

#### 1. JScript Example

    var oQuaternion = XSIMath.CreateQuaternion() ;

    Application.LogMessage( "Uninitialized Quaternion  "

    				+ oQuaternion.W + ","

    				+ oQuaternion.X + ","

    				+ oQuaternion.Y + ","

    				+ oQuaternion.Z ) ;

    oQuaternion.SetIdentity() ;

    Application.LogMessage( "Identity Quaternion  "

    				+ oQuaternion.W + ","

    				+ oQuaternion.X + ","

    				+ oQuaternion.Y + ","

    				+ oQuaternion.Z ) ;

    //INFO : Uninitialized Quaternion  1,0,0,0

    //INFO : Identity Quaternion  1,0,0,0

#### 2. VBScript Example

    dim q1

    ' Create Quaternion.

    set q1 = XSIMath.CreateQuaternion

    q1.SetIdentity

### See Also

SIQuaternion.Set SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion