The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home MathPack Math1 Miscellaneous Stuff DistanceToSegment | |||||||
See also: DistanceToPolygon, DistFromRect, DistFromEllipse | |||||||
DistanceToSegment |
|||||||
The function DistanceToSegment calculates the distance of the test point TestPoint from a line segment defined by its end points SegP1 and SegP2. The function returns the distance from the nearest element of the segment (either an endpoint or the line in between).
|