Point[] (final int width, final int height) { final Point[] points = new Point[8]; points[NW] = new Point(GAP, GAP); // NW points[N] = new Point(width / 2, GAP); // N points[NE] = new Point(width - GAP - 1, GAP); // NE points[E] = new Point(width - GAP - 1, height / 2); // E points[SE] = new Point(width - GAP - 1, height - GAP - 1); // SE points[S] = new Point(width / 2, height - GAP - 1); // S points[SW] = new Point(GAP, height - GAP - 1); // SW points[W] = new Point(GAP, height / 2); // W return points; }