public static Point2d getClosestVertexCopy(Point2d point, ConvexPolygon2d polygon) { Point2d ret = new Point2d(); if (getClosestVertex(point, polygon, ret)) return ret; return null; }
public static Point2d getClosestVertexCopy(Line2d line, ConvexPolygon2d polygon) { Point2d ret = new Point2d(); if (getClosestVertex(line, polygon, ret)) return ret; return null; }