Return a point that is on the given line which is closest to the given point.
If segment is true, it will treat the line as a segment which has start and end. Otherwise it will treat the line is infinite.
segment
A line
A point
Optional
Is the line a segment?
Return a point that is on the given line which is closest to the given point.
If
segmentis true, it will treat the line as a segment which has start and end. Otherwise it will treat the line is infinite.