Accord.NET Framework

## LineDistanceToPoint Method |

Calculate Euclidean distance between a point and a line.

Syntax

Request Example
View Source#### Parameters

#### Return Value

Type: Single

Returns the Euclidean distance between this line and the specified point. Unlike DistanceToPoint(Point), this returns the distance from the infinite line. (0,0) is 0 units from the line defined by (0,5) and (0,8), but is 5 units from the segment with those endpoints.

- point
- Type: AccordPoint

The point to calculate distance to.

Returns the Euclidean distance between this line and the specified point. Unlike DistanceToPoint(Point), this returns the distance from the infinite line. (0,0) is 0 units from the line defined by (0,5) and (0,8), but is 5 units from the segment with those endpoints.

See Also