Get closest vertex to the point
Point getClosestVertex(Point point) { return vertices.fold<Point>(vertices.first, (v1, v2) => point.distanceTo(v1) > point.distanceTo(v2) ? v2 : v1); }