Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

cdbfbc81 be0e 65e5 f296 37b0576c6933

haplokuon edited this page May 6, 2023 · 1 revision

PointLineDistance(Vector3, Vector3, Vector3) Method

netDxf 3.0.0 Library

Calculates the minimum distance between a point and a line.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static double PointLineDistance(
	Vector3 p,
	Vector3 origin,
	Vector3 dir
)

VB

Public Shared Function PointLineDistance ( 
	p As Vector3,
	origin As Vector3,
	dir As Vector3
) As Double

C++

public:
static double PointLineDistance(
	Vector3 p, 
	Vector3 origin, 
	Vector3 dir
)

F#

static member PointLineDistance : 
        p : Vector3 * 
        origin : Vector3 * 
        dir : Vector3 -> float 

Parameters

  Vector3
A point.
  Vector3
Line origin point.
  Vector3
Line direction.

Return Value

Double
The minimum distance between the point and the line.

See Also

Reference

MathHelper Class
PointLineDistance Overload
netDxf Namespace

Clone this wiki locally