{ 9, 1 }, { 9, 2 }, { 9, 3 }, { 9, 4 }, { 10, -3 }, { 10, -2 },
{ 10, -1 }, { 10, 0 }, { 10, 1 }, { 10, 2 }, { 10, 3 },
{ 11, -1 }, { 11, 0 }, { 11, 1 } };
for (int[] line : data) {
points.add(new Vector2D(line[0], line[1]));
}
Vector2D[] referenceHull = new Vector2D[] {
new Vector2D(-11.0, -1.0),
new Vector2D(-10.0, -3.0),
new Vector2D( -6.0, -7.0),
new Vector2D( -3.0, -8.0),
new Vector2D( 3.0, -8.0),
new Vector2D( 6.0, -7.0),
new Vector2D( 10.0, -3.0),
new Vector2D( 11.0, -1.0),
new Vector2D( 11.0, 1.0),
new Vector2D( 10.0, 3.0),
new Vector2D( 6.0, 7.0),
new Vector2D( 3.0, 8.0),
new Vector2D( -3.0, 8.0),
new Vector2D( -6.0, 7.0),
new Vector2D(-10.0, 3.0),
new Vector2D(-11.0, 1.0),
};
ConvexHull2D convHull = generator.generate(points);
Region<Euclidean2D> hullRegion = convHull.createRegion();