Sets the rotation from a matrix representation.
SIRotation.SetFromMatrix3( SIMatrix3 io_pMatrix ); |
SIRotation.SetFromMatrix3( m ); |
Parameter | Type | Description |
---|---|---|
m | SIMatrix3 | matrix operand |
' 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 |