API Documentation > CorelDRAW > 2025-v26 > MathUtils > IVGMathUtils
MathUtils.DistanceToLineSegment method
Find the distance to a line segment, returns the distance to the closest endpoint if none are found
Syntax:
Function DistanceToLineSegment(ByVal S As Point, ByVal E As Point, ByVal Point As Point) As Double
Parameters:
Name Type Description
S
E
Point