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(
	Circle circle
)
Visual Basic (Declaration)
Public Function DistanceTo ( _
	circle As Circle _
) As Double
Visual C++
public:
double DistanceTo(
	Circle^ circle
)

Parameters

circle
Type: ceometric.VectorGeometry..::.Circle
A circle.

Return Value

Returns the signed minimum distance from the plane to circle.

Remarks

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

See Also