Accord.NET Framework

## LineSegmentDistanceToPoint Method |

Calculate Euclidean distance between a point and a finite line segment.

Syntax

Request Example
View Source#### Parameters

#### Return Value

Type: Single

Returns the Euclidean distance between this line segment and the specified point. Unlike DistanceToPoint(Point), this returns the distance from the finite segment. (0,0) is 5 units from the segment (0,5)-(0,8), but is 0 units from the line through those points.

- point
- Type: AccordPoint

The point to calculate the distance to.

Returns the Euclidean distance between this line segment and the specified point. Unlike DistanceToPoint(Point), this returns the distance from the finite segment. (0,0) is 5 units from the segment (0,5)-(0,8), but is 0 units from the line through those points.

See Also