CADability dotNET
Returns the smallest distance from the provided point to the face. It will be the distance to a perpendicular footpoint on the face. If there is no such perpendicular footpoint double.MaxValue will be returned. This method does not compute the distance to edges or vertices. If you need those distances use PositionOf(GeoPoint) and PointAt(Double).

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

Syntax

C#
public double Distance(
	GeoPoint fromHere
)
Visual Basic
Public Function Distance ( _
	fromHere As GeoPoint _
) As Double
Visual C++
public:
double Distance(
	GeoPoint fromHere
)

Parameters

fromHere
Type: CADability..::..GeoPoint
Point from which the distance is calculated

Return Value

The signed distance, positive is to the outside, negative to the inside

See Also