Vector2DTests Statics 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 Statics()
Examples

[Test]
public void Statics()
{
    Assert.AreEqual(new Vector2D(0, 0), Vector2D.Zero);
    Assert.AreEqual(new Vector2D(1, 1), Vector2D.One);
    Assert.AreEqual(new Vector2D(0.5f, 0.5f), Vector2D.Half);
    Assert.AreEqual(new Vector2D(1, 0), Vector2D.UnitX);
    Assert.AreEqual(new Vector2D(0, 1), Vector2D.UnitY);
    Assert.AreEqual(new Vector2D(1, 0), Vector2D.ScreenRight);
    Assert.AreEqual(new Vector2D(-1, 0), Vector2D.ScreenLeft);
    Assert.AreEqual(new Vector2D(0, -1), Vector2D.ScreenUp);
    Assert.AreEqual(new Vector2D(0, 1), Vector2D.ScreenDown);
    Assert.AreEqual(8, Vector2D.SizeInBytes);
}
See Also