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( Triangle triangle ) |

Visual Basic (Declaration) |
---|

Public Function DistanceTo ( _ triangle As Triangle _ ) As Double |

Visual C++ |
---|

public: double DistanceTo( Triangle^ triangle ) |

#### Parameters

- triangle
- Type: ceometric.VectorGeometry..::.Triangle

A triangle.

#### Return Value

Returns the signed minimum distance from the plane to triangle.# Remarks

This distance is

- positive if the closest point on triangle lies on the other side of the plane as the origin,
- zero if triangle intersects the plane or lies on the plane and
- negative if the closest point on triangle lies on the same side of the plane as the origin.