TypeLibF Xojo Plugin

LineF.PointDistanceFromInfiniteLine Method

Calculates distance of a point from a line that is infinite long.

PointDistanceFromInfiniteLine(
   pt as PointF) as LineF

Parameters

pt
The point to calculate the distance from the line

Returns

LineF
Line definition (defines direction, line is then calculated as infinite long in both directions)

Remarks



In this picture then red point is within the scope of the line and shortest distance from the line is calculated at straight angle. For the blue point then it can be seen that the line gets extended and then shortest distance is calculated at straight angle.

See Also

LineF Class