Click or drag to resize

MathHelperPointLineDistance Method (Vector3, Vector3, Vector3)

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Calculates the minimum distance between a point and a line.

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public static double PointLineDistance(
	Vector3 p,
	Vector3 origin,
	Vector3 dir
)
Request Example View Source

Parameters

p
Type: netDxfVector3
A point.
origin
Type: netDxfVector3
Line origin point.
dir
Type: netDxfVector3
Line direction.

Return Value

Type: Double
The minimum distance between the point and the line.
See Also