You are here: Start » AVL.NET » Function Reference » Geometry 3D » Geometry 3D Distance Metrics » AVL.PointToLineDistance3D

AVL.PointToLineDistance3D

Measures the distance between a 3D point and a line in 3D.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PointToLineDistance3D
(
	AvlNet.Point3D inPoint3D,
	AvlNet.Line3D inLine3D,
	float inResolution,
	out float outDistance,
	INullable<AvlNet.Segment3D> outConnectingSegment3D
)

Parameters

Name Type Range Default Description
inPoint3DAvlNet.Point3D
inLine3DAvlNet.Line3D
inResolutionfloat<0.0f, INF>1.0fNumber of real-world units per one pixel. Default value: 1.0f.
outDistancefloat
outConnectingSegment3DAvlNet.INullable<AvlNet.Segment3D> Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite line on input in PointToLineDistance3D.

Function Overrides

See also