MatrixTests Unproject Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Datatypes
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Unproject()
Examples

[Test]
public void Unproject()
{
    matrix = Matrix.CreatePerspective(60.0f, 1.0f, 0.5f, 10.0f);
    var position = Matrix.TransformHomogeneousCoordinate(Vector3D.One, matrix);
    var invMatrix = Matrix.Invert(matrix);
    Assert.IsTrue(
        Matrix.TransformHomogeneousCoordinate(position, invMatrix).IsNearlyEqual(Vector3D.One));
}
See Also