|
static |
Projects a given point onto a line.
The line is characterized by a start and end point. Optionally, the projected point can be clamped between the start and end point. For this to work, the additional parameter clamped needs to be set (which is the default).
point | The given point which has to be projected. |
start | The start point of the line. |
end | The end point of the line. |
clamped | If true , the projected point is clamped. |