Triangle2DTests DefaultConstructor Method Delta Engine Documentation

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

public void DefaultConstructor()
Examples

[Test]
public void DefaultConstructor()
{
    var triangle = new Triangle2D();
    Assert.AreEqual(Vector2D.Zero, triangle.Corner1);
    Assert.AreEqual(Vector2D.Zero, triangle.Corner2);
    Assert.AreEqual(Vector2D.Zero, triangle.Corner3);
    Assert.AreEqual(triangle, Triangle2D.Zero);
}
See Also