Method DistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
DistanceTo(GeoPoint3)
Calculates the Euclidean distance to another point.
public double DistanceTo(GeoPoint3 other)
Parameters
otherGeoPoint3
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
lineGeoLine3
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
rayGeoRay3
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
planeGeoPlane3
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
triangleGeoTriangle3
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
polylineGeoPolyline3
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
polygonGeoPolygon3
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
faceGeoFace3
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
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
circleGeoCircle3
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
boxGeoObb3
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
boxGeoAabb3
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
solidGeoSolid3
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
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
arcGeoArc3
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
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
edgeGeoEdge3
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
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
loopGeoPolygonArc3
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
loopGeoPolygonArc3toleranceTolerance
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
chainGeoPolylineArc3
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
chainGeoPolylineArc3toleranceTolerance
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
sphereGeoSphere3
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
splineGeoSpline3
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
splineGeoSpline3toleranceTolerance
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
xlineGeoXLine3
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
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.