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

[Test]
public void TranslateMatrix()
{
    var matrix1 = Matrix.CreateTranslation(1, 2, 3);
    var matrix2 = Matrix.CreateTranslation(1, 0, 0);
    Assert.AreEqual(new Vector3D(1, 2, 3), matrix1.Translation);
    Assert.AreEqual(Vector3D.UnitX, matrix2.Translation);
}
See Also