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

[Test, CloseAfterFirstFrame]
public void ChangingStartAndEndPointsChangesDrawArea()
{
    var line = new Line2D(new Vector2D(1, 2), new Vector2D(3, 5), Color.White);
    line.StartPoint = new Vector2D(11, 12);
    line.EndPoint = new Vector2D(16, 18);
    Assert.AreEqual(new Rectangle(11, 12, 5, 6), line.DrawArea);
}
See Also