Back to Aurora Vision Studio website

You are here: Start » Filter Reference » Geometry 2D » Geometry 2D Distance Metrics » PointToLineDistance

PointToLineDistance


Module: FoundationLite

Measures the distance between a point and a line.

Name Type Range Description
Input value inPoint Point2D
Input value inLine Line2D
Input value inResolution Real 0.0 - Number of real-world units per one pixel
Output value outDistance Real
Output value outConnectingSegment Segment2D
Output value outSignedDistance Real

Examples

Description of usage of this filter can be found in examples and tutorial: Pins.

PointToLineDistance performed on a sample point and a sample line. The green segment is the value of outConnectingSegment output.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in PointToLineDistance.

Complexity Level

This filter is available on Basic Complexity Level.