Click or drag to resize

Vector2PointDistance Method

Obtains the relative distance of a point from a segment defined by points u and v.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static double PointDistance(
	Vector2 p,
	Vector2 u,
	Vector2 v
)

Parameters

p
Type: DXFReaderNETVector2
The point.
u
Type: DXFReaderNETVector2
First vector of the segment.
v
Type: DXFReaderNETVector2
Second vector of the segment.

Return Value

Type: Double
Square distance.
See Also