GraphLineTests RemoveFirstPoint Method Delta Engine Documentation

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

public void RemoveFirstPoint()
Examples

[Test, CloseAfterFirstFrame]
public void RemoveFirstPoint()
{
    GraphLine line = CreateLineWithThreePoints();
    line.RemoveAt(0);
    Assert.AreEqual(2, line.points.Count);
    Assert.AreEqual(1, line.lines.Count);
    Assert.AreEqual(new Vector2D(0.6f, 0.7f), line.points[0]);
    Assert.AreEqual(new Vector2D(0.8f, 0.4f), line.points[1]);
    Assert.IsTrue(line.lines[0].StartPoint.IsNearlyEqual(new Vector2D(0.538f, 0.462f)));
    Assert.IsTrue(line.lines[0].EndPoint.IsNearlyEqual(new Vector2D(0.6143f, 0.519f)));
}
See Also