## SITransformation.SetRotationFromMatrix3

### Description

Sets the rotation part of this transformation, using a 3x3 matrix.

### C# Syntax

    SITransformation.SetRotationFromMatrix3( SIMatrix3 in_pRotMat );

### Scripting Syntax

    SITransformation.SetRotationFromMatrix3( in_pRotMat );

### Parameters

Parameter | Type | Description
--- | --- | ---
in_pRotMat | SIMatrix3 | 3x3 matrix containing the rotation information to fill this tranformation rotation.

### Examples

#### VBScript Example

    ' Create transformation.

    set oTransformation = XSIMath.CreateTransform

    ' create 3x3 matrix.

    set oMatrix3 = XSIMath.CreateMatrix3

    'Get the rotation matrix3 representation

    oTransformation.GetRotationMatrix3 oMatrix3

    'Modify the matrix

    oMatrix3.value(2,1) = 5.0

    'Set the rotation from matrix3

    oTransformation.SetRotationFromMatrix3 oMatrix3

### See Also

SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion