BSPTree<Euclidean2D> b6 =
new BSPTree<Euclidean2D>(buildLine(new Vector2D(0.0, -1.10),
new Vector2D(1.0, -0.10)),
new BSPTree<Euclidean2D>(Boolean.FALSE), b5, null);
PolygonsSet c =
(PolygonsSet) new RegionFactory<Euclidean2D>().union(new PolygonsSet(a9),
new PolygonsSet(b6));
checkPoints(Region.Location.INSIDE, c, new Vector2D[] {
new Vector2D(0.83, -0.06),
new Vector2D(0.83, -0.15),
new Vector2D(0.88, -0.15),
new Vector2D(0.88, -0.09),
new Vector2D(0.88, -0.07),
new Vector2D(0.91, -0.18),
new Vector2D(0.91, -0.10)
});
checkPoints(Region.Location.OUTSIDE, c, new Vector2D[] {
new Vector2D(0.80, -0.10),
new Vector2D(0.83, -0.50),
new Vector2D(0.83, -0.20),
new Vector2D(0.83, -0.02),
new Vector2D(0.87, -0.50),
new Vector2D(0.87, -0.20),
new Vector2D(0.87, -0.02),
new Vector2D(0.91, -0.20),
new Vector2D(0.91, -0.08),
new Vector2D(0.93, -0.15)
});
checkVertices(c.getVertices(),
new Vector2D[][] {
new Vector2D[] {
new Vector2D(0.85, -0.15),
new Vector2D(0.90, -0.20),
new Vector2D(0.92, -0.18),