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

AVL.PointToPointDistance

Measures the distance between two points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointToPointDistance
(
	AvlNet.Point2D inPoint1,
	AvlNet.Point2D inPoint2,
	float inResolution,
	out float outDistance
)

Parameters

Name Type Range Default Description
inPoint1AvlNet.Point2D
inPoint2AvlNet.Point2D
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
outDistancefloat

Examples

PointToPointDistance performed on two sample points. The green segment is the value of outConnectingSegment output.

Function Overrides

See also