throw new IllegalArgumentException("Empty points set");
Iterator<Point> iterator = points.iterator();
Point p = iterator.next();
if (p == null)
throw new NullPointerException("Null point is the collection");
int result = p.coordCount();
for (; iterator.hasNext(); ) {
p = iterator.next();
if (p == null)
throw new NullPointerException("Null point is the collection");
if (p.coordCount() != result)