isClosed method

bool isClosed()

Implementation

bool isClosed() {
  return pts[0].equals(pts[pts.length - 1]);
}