Back to Adaptive Vision Library Lite website
You are here: Start » Geometry 2D Distance Metrics » PointToPointDistance
![](../../img/icon/Geometry.png)
PointToPointDistance
Measures the distance between two points.
Syntax
void avl::PointToPointDistance ( const avl::Point2D& inPoint1, const avl::Point2D& inPoint2, float inResolution, float& outDistance, atl::Optional<avl::Segment2D&> outConnectingSegment = atl::NIL )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint1 | const Point2D& | |||
![]() |
inPoint2 | const Point2D& | |||
![]() |
inResolution | float | 0.0 - ![]() |
1.0f | Number of real-world units per one pixel |
![]() |
outDistance | float& | |||
![]() |
outConnectingSegment | Optional<Segment2D&> | NIL |
Examples
![]() |
![]() |
PointToPointDistance performed on two sample points. The green segment is the value of outConnectingSegment output.