public void IntersectInternalTest() { var c = new Coordinate[50]; var rnd = new Random(); var cc = new Coordinate[50]; for (var i = 0; i < 50; i++) { c[i] = new Coordinate((rnd.NextDouble() + 360) - 180, (rnd.NextDouble() * 180) - 90); var x = c[i].X; var y = c[i].Y; cc[i] = new Coordinate(x, y); } var mps = new MultiPoint(cc); var mpsCheck = new MultiPoint(c); var intersects = mpsCheck.Intersects(mps); if (intersects != true) { Assert.Fail("The two multipoint features did not intersect."); } }
public void IntersectInternalTest() { Coordinate[] c = new Coordinate[50]; Random rnd = new Random(); Coordinate[] cc = new Coordinate[50]; for (int i = 0; i < 50; i++) { c[i] = new Coordinate((rnd.NextDouble() + 360) - 180, (rnd.NextDouble() * 180) - 90); double x = c[i].X; double y = c[i].Y; cc[i] = new Coordinate(x, y); } MultiPoint mps = new MultiPoint(cc); MultiPoint mpsCheck = new MultiPoint(c); bool intersects = mpsCheck.Intersects(mps); if (intersects != true) { Assert.Fail("The two multipoint features did not intersect."); } }
public void IntersectInternalTest() { var c = new Coordinate[50]; var rnd = new Random(); var cc = new Coordinate[50]; for (var i = 0; i < 50; i++) { c[i] = new Coordinate((rnd.NextDouble() + 360) - 180, (rnd.NextDouble() * 180) - 90); var x = c[i].X; var y = c[i].Y; cc[i] = new Coordinate(x, y); } var mps = new MultiPoint(cc); var mpsCheck = new MultiPoint(c); var intersects = mpsCheck.Intersects(mps); if (intersects != true) { Assert.Fail("The two multipoint features did not intersect."); } }