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
)
Public Shared Function PointDistance (
p As Vector2,
u As Vector2,
v As Vector2
) As Double
public:
static double PointDistance(
Vector2 p,
Vector2 u,
Vector2 v
)
static member PointDistance :
p : Vector2 *
u : Vector2 *
v : Vector2 -> float
STATIC METHOD PointDistance(
p AS Vector2,
u AS Vector2,
v AS Vector2
) AS REAL8
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:
DoubleSquare distance.
See Also