Table of Contents

Method DistanceTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

DistanceTo(GeoPoint3)

Calculates the Euclidean distance to another point.

public double DistanceTo(GeoPoint3 other)

Parameters

other GeoPoint3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoLine3)

Calculates the shortest distance to a line segment.

public double DistanceTo(GeoLine3 line)

Parameters

line GeoLine3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly. A segment no longer than the global point tolerance is read as its start point, except where it truly meets the other shape.

DistanceTo(GeoRay3)

Calculates the shortest distance to a ray.

public double DistanceTo(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoPlane3)

Calculates the perpendicular distance to a plane.

public double DistanceTo(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoTriangle3)

Calculates the shortest distance to a triangle.

public double DistanceTo(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoPolyline3)

Calculates the shortest distance to a polyline.

public double DistanceTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoPolygon3)

Calculates the shortest distance to a polygon, read as a filled surface.

public double DistanceTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoFace3)

Calculates the shortest distance to a face, holes respected.

public double DistanceTo(GeoFace3 face)

Parameters

face GeoFace3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoFace3, Tolerance)

Calculates the shortest distance to a face, holes respected, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoCircle3)

Calculates the shortest distance to a circular disc, read as a filled surface.

public double DistanceTo(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

double

Nought only where the point lies in the disc, otherwise the gap to it, measured exactly.

DistanceTo(GeoObb3)

Calculates the shortest distance to an oriented box. A point inside is at distance zero.

public double DistanceTo(GeoObb3 box)

Parameters

box GeoObb3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoAabb3)

Calculates the shortest distance to an axis-aligned box. A point inside is at distance zero.

public double DistanceTo(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoSolid3)

Calculates the shortest distance to a solid. A point inside is at distance zero.

public double DistanceTo(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly. Within a billionth of a millimetre of the outside of a solid it reads nought, so that rounding in a turned body cannot lose a crossing.

DistanceTo(GeoSolid3, Tolerance)

Calculates the shortest distance to a solid, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly. Within a billionth of a millimetre of the outside of a solid it reads nought, so that rounding in a turned body cannot lose a crossing.

DistanceTo(GeoArc3)

Gets the distance from this point to an arc: the same answer as DistanceTo(GeoPoint3).

public double DistanceTo(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoArc3, Tolerance)

Gets the distance from this point to an arc, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoEdge3)

Gets the distance from this point to an edge: the same answer as DistanceTo(GeoPoint3).

public double DistanceTo(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoEdge3, Tolerance)

Gets the distance from this point to an edge, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoPolygonArc3)

Gets the distance from this point to a curved loop: the same answer as DistanceTo(GeoPoint3).

public double DistanceTo(GeoPolygonArc3 loop)

Parameters

loop GeoPolygonArc3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

Exceptions

ArgumentNullException

Thrown when the loop is null.

DistanceTo(GeoPolygonArc3, Tolerance)

Gets the distance from this point to a curved loop, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

Exceptions

ArgumentNullException

Thrown when the loop is null.

DistanceTo(GeoPolylineArc3)

Gets the distance from this point to a curved chain: the same answer as DistanceTo(GeoPoint3).

public double DistanceTo(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

Exceptions

ArgumentNullException

Thrown when the chain is null.

DistanceTo(GeoPolylineArc3, Tolerance)

Gets the distance from this point to a curved chain, within a tolerance: the same answer as DistanceTo(GeoPoint3, Tolerance).

public double DistanceTo(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

Exceptions

ArgumentNullException

Thrown when the chain is null.

DistanceTo(GeoSphere3)

Calculates the shortest distance from this point to a ball.

public double DistanceTo(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

double

Nought where the point lies in the ball, otherwise the gap, measured exactly.

DistanceTo(GeoSpline3)

Calculates the shortest distance from this point to a spline, using the default tolerance.

public double DistanceTo(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

double

Nought only where the point truly lies on the spline, otherwise the gap, measured exactly.

Exceptions

ArgumentNullException

Thrown when the spline is null.

DistanceTo(GeoSpline3, Tolerance)

Calculates the shortest distance from this point to a spline, within a tolerance.

public double DistanceTo(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

double

Nought only where the point truly lies on the spline, otherwise the gap, measured exactly; the tolerance is not read.

Exceptions

ArgumentNullException

Thrown when the spline is null.

DistanceTo(GeoXLine3)

Calculates the shortest distance from this point to an infinite line, using the default tolerance.

public double DistanceTo(GeoXLine3 xline)

Parameters

xline GeoXLine3

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.

DistanceTo(GeoXLine3, Tolerance)

Calculates the shortest distance from this point to an infinite line, within a tolerance.

public double DistanceTo(GeoXLine3 xline, Tolerance tolerance)

Parameters

xline GeoXLine3
tolerance Tolerance

Returns

double

Nought only where they truly meet, otherwise the gap, measured exactly.