Namespace: DeltaEngine.Rendering2D.Shapes.Tests
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Shapes.Tests (in DeltaEngine.Rendering2D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void LineExitingBottomEdgeIsClipped() { var line = new Line2D(new Vector2D(0.1f, 1.5f), new Vector2D(0.2f, 0.5f), Color.Red); line.Clip(Rectangle.One); Assert.AreEqual(new Vector2D(0.15f, 1.0f), line.StartPoint); Assert.AreEqual(new Vector2D(0.2f, 0.5f), line.EndPoint); Assert.IsTrue(line.IsVisible); }
See Also