CADability dotNET
Returns the distance of a point from a line (2d)

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static double DistPL(
	GeoPoint2D P,
	GeoPoint2D lstart,
	GeoVector2D ldir
)
Visual Basic
Public Shared Function DistPL ( _
	P As GeoPoint2D, _
	lstart As GeoPoint2D, _
	ldir As GeoVector2D _
) As Double
Visual C++
public:
static double DistPL(
	GeoPoint2D P, 
	GeoPoint2D lstart, 
	GeoVector2D ldir
)

Parameters

P
Type: CADability..::..GeoPoint2D
the point
lstart
Type: CADability..::..GeoPoint2D
startpoint of the line
ldir
Type: CADability..::..GeoVector2D
direction of the line

Return Value

distance

See Also