## SIRotation.SetFromMatrix3

### Description

Sets the rotation from a matrix representation.

### C# Syntax

    SIRotation.SetFromMatrix3( SIMatrix3 io_pMatrix );

### Scripting Syntax

    SIRotation.SetFromMatrix3( m );

### Parameters

Parameter | Type | Description
--- | --- | ---
m | SIMatrix3 | matrix operand

### Examples

#### VBScript Example

    ' Create transformation.
    set oTransformation = XSIMath.CreateTransform
    ' create rotation object.
    set oRotation= XSIMath.CreateRotation
    ' create matrix3 object.
    set oMatrix3= XSIMath.CreateMatrix3
    'Get the rotation
    oRotation.GetMatrix3 oMatrix3
    'Modify the matrix
    oMatrix3.value(2,1) = 5.0
    'Set the rotation from matrix3
    oRotation.SetFromMatrix3 oMatrix3

### See Also

SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion