Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Distance Metrics » PointToLineDistance_Oriented
Measures the signed distance between a point and a line with direction.
Syntax
C++
C#
void avl::PointToLineDistance_Oriented ( const avl::Point2D& inPoint, const avl::Segment2D& inLineSection, atl::real inResolution, atl::real& outDistance, atl::Optional<avl::Segment2D&> outConnectingSegment = atl::NIL )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inPoint | const Point2D& | |||
![]() |
inLineSection | const Segment2D& | |||
![]() |
inResolution | real | 0.0 - ![]() |
1.0f | Number of real-world units per one pixel |
![]() |
outDistance | real& | |||
![]() |
outConnectingSegment | Optional<Segment2D&> | NIL |



