Line2DTests RenderRedSquareViaAddingLines 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 RenderRedSquareViaAddingLines()
Examples

[Test]
public void RenderRedSquareViaAddingLines()
{
    var line = new Line2D(new Vector2D(0.4f, 0.4f), new Vector2D(0.6f, 0.4f), Color.Red);
    line.AddLine(new Vector2D(0.6f, 0.4f), new Vector2D(0.6f, 0.6f));
    line.AddLine(new Vector2D(0.6f, 0.6f), new Vector2D(0.4f, 0.6f));
    line.AddLine(new Vector2D(0.4f, 0.6f), new Vector2D(0.4f, 0.4f));
}
See Also