MatrixTests CreateLookAtFiveMetersDistance 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 CreateLookAtFiveMetersDistance()
Examples

[Test]
public void CreateLookAtFiveMetersDistance()
{
    var createdLookAt = Matrix.CreateLookAt(new Vector3D(0.0f, 0.0f, 5.0f), Vector3D.Zero,
        Vector3D.UnitY);
    var expected = new Matrix(
        1.0f, 0.0f, 0.0f, 0.0f,
        0.0f, 1.0f, 0.0f, 0.0f,
        0.0f, 0.0f, 1.0f, 0.0f, 
        0.0f, 0.0f, -5.0f, 1.0f);
    Assert.IsTrue(createdLookAt.IsNearlyEqual(expected));
}
See Also