public boolean getClosestPointWithRay(Point2d pointToPack, Line2d ray) { return ConvexPolygon2dCalculator.getClosestPointToRay(ray, pointToPack, this); }
public static Point2d getClosestPointToRayCopy(Line2d ray, ConvexPolygon2d polygon) { Point2d ret = new Point2d(); if (getClosestPointToRay(ray, ret, polygon)) return ret; return null; }