Namespace: DeltaEngine.Rendering2D.Shapes
Assembly: DeltaEngine.Rendering2D.Shapes (in DeltaEngine.Rendering2D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering2D.Shapes.Tests.Line2DTests
2 unit tests call DeltaEngine.Rendering2D.Shapes.Line2D.DrawArea
Assembly: DeltaEngine.Rendering2D.Shapes (in DeltaEngine.Rendering2D.Shapes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: RectangleRemarks
Examples
[Test, CloseAfterFirstFrame] public void ChangingDrawAreaChangesStartAndEndPoints() { var line = new Line2D(new Vector2D(1, 2), new Vector2D(3, 5), Color.White); line.DrawArea = new Rectangle(11, 12, 5, 6); Assert.AreEqual(new Vector2D(11, 12), line.StartPoint); Assert.AreEqual(new Vector2D(16, 18), line.EndPoint); Assert.AreEqual(new Rectangle(11, 12, 5, 6), line.DrawArea); }
[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