CADability dotNET
Returns the distance of the specified point to this curve. If this curve can be extended (e.g. a line or an arc) this method will return the distance to the extended curve. If you need the distance to the unextended curve use MinDistance(ICurve2D).

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

Syntax

C#
double Distance(
	GeoPoint2D p
)
Visual Basic
Function Distance ( _
	p As GeoPoint2D _
) As Double
Visual C++
double Distance(
	GeoPoint2D p
)

Parameters

p
Type: CADability..::..GeoPoint2D
Point to compute the distance to

Return Value

the distance

See Also