Back to FabImage Studio website
You are here: Start » Filter Reference » Geometry 2D Distance Metrics » PointToLineDistance
Measures the distance between a point and a line.
Name | Type | Range | Description | |
---|---|---|---|---|
![]() |
inPoint | Point2D | ||
![]() |
inLine | Line2D | ||
![]() |
inResolution | Real | 0.0 - ![]() |
Number of real-world units per one pixel |
![]() |
outDistance | Real | ||
![]() |
outConnectingSegment | Segment2D |
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 here: Error Handling
Error type | Description |
---|---|
DomainError | Indefinite line on input in PointToLineDistance. |
Complexity Level
This filter is available on Basic Complexity Level.