Gives the minimum distance from p2 to the line.
Point to get minimum distance for.
Gives the minimum distance squared from p2 to the line. This function exists because it doesn't require any Math.sqrt, and is hence a more efficient way if one want to compare distances between many points.
Point to get minimum distance for.
Returns what number you would have to multiply the lines vector with to reach the point returned by project when starting from the line's point.
Point whose projection we get the factor for.
Generated using TypeDoc
A line is represented by a point and a vector, it is of infinite length.