您好,可以通过Geometrist.computePerpendicularPosition(Point2D point, Point2D startPoint, Point2D endPoint)计算点到线的垂足拿到最近的坐标点