/** * Finds the index of the closest edge to the query. * * @param point the coordinates of the query. Not modified. * @return the line segment representing the closest edge or {@code null} if this method failed. * @throws ReferenceFrameMismatchException if {@code point} and {@code this} are not expressed in * the same reference frame. * @see #getClosestEdgeCopy(Point2DReadOnly) */ default FrameLineSegment2DBasics getClosestEdgeCopy(FramePoint2DReadOnly point) { checkReferenceFrameMatch(point); return getClosestEdgeCopy((Point2DReadOnly) point); }