Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Distance Metrics » PointToArcDistance

PointToArcDistance


Header:AVL.h
Namespace:avl

Measures the distance between a point and an arc.

Syntax

C++
C#
 
void avl::PointToArcDistance
(
	const avl::Point2D& inPoint,
	const avl::Arc2D& inArc,
	float inResolution,
	float& outDistance,
	atl::Optional<avl::Segment2D&> outConnectingSegment = atl::NIL
)

Parameters

Name Type Range Default Description
inPoint const Point2D&
inArc const Arc2D&
inResolution float 0.0 - 1.0f Number of real-world units per one pixel
outDistance float&
outConnectingSegment Optional<Segment2D&> NIL

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outConnectingSegment.

Read more about Optional Outputs.

Examples

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