Example #1
0
 public void TestLineHashing()
 {
     GeometryCollection geometry = new GeometryCollection();
     geometry.Add(new Line(new Vector2(-1, 0), new Vector2(1, 0)));
     geometry.Add(new Line(new Vector2(-1, 0), new Vector2(1, 0)));
     geometry.Add(new Line(new Vector2(1, 0), new Vector2(-1, 0)));
     geometry.Add(new Line(new Vector2(1, 0), new Vector2(-1, 0)));
     Assert.AreEqual(2, geometry.GetPointsAsArray().Length);
     Assert.AreEqual(2, geometry.GetLinesAsIndexArray().Length);
 }