TypeLibF Xojo Plugin

LineF.PointDistanceFromLine Method

Calculates distance of a point from a fixed length line.

PointDistanceFromLine(
   pt as PointF) as LineF

Parameters

pt
The point to calculate the distance from the line

Returns

LineF
The line.

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 is outside of the scope of the line so shortest distance is no longer at straight angle.

See Also

LineF Class