Computes the shortest spatial distance between two objects.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public double DistanceTo(
	Point point
)
Visual Basic (Declaration)
Public Function DistanceTo ( _
	point As Point _
) As Double
Visual C++
public:
double DistanceTo(
	Point^ point
)

Parameters

point
Type: ceometric.VectorGeometry..::.Point
A point.

Return Value

Returns the signed minimum distance from the plane to point.

Remarks

This distance is
  • positive if point lies on the other side of the plane as the origin,
  • zero if point lies on the plane and
  • negative if point lies on the same side of the plane as the origin.

If point lies exactly on the plane, the method returns exactly zero only in rare cases due to floating point arithmetic.

See Also