Method FromMatrixSafe
FromMatrixSafe(float4x4)
Returns the Transform equivalent of a float4x4 matrix. Throws and exception if the matrix contains nonuniform scale or shear.
Declaration
public static LocalTransform FromMatrixSafe(float4x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
float4x4 | matrix | The orthogonal matrix to convert. |
Returns
Type | Description |
---|---|
LocalTransform | The Transform. |
Remarks
If the input matrix contains non-uniform scale, this will throw an exception. If the input matrix contains shear, this will throw an exception.
See Also
FromMatrix(float4x4)