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

Parameters

plane
Type: ceometric.VectorGeometry..::.Plane
A plane.

Return Value

Returns the signed minimum distance from the edge to plane.

Remarks

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

See Also