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

AVL.PointToArcDistance

Measures the distance between a point and an arc.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointToArcDistance
(
	AvlNet.Point2D inPoint,
	AvlNet.Arc2D inArc,
	float inResolution,
	out float outDistance,
	NullableValue<AvlNet.Segment2D> outConnectingSegment
)

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inArcAvlNet.Arc2D
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
outDistancefloat
outConnectingSegmentAvlNet.NullableValue<AvlNet.Segment2D> Can be null to skip this parameter calculation.

Examples

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

Function Overrides

See also