Method DistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
DistanceTo(GeoPoint2)
Gets the distance from this ellipse to a point, nought for one inside it, using the default tolerance.
public double DistanceTo(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoPoint2, Tolerance)
Gets the distance from this ellipse to a point, nought for one inside it, within a tolerance.
public double DistanceTo(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoLine2)
Gets the shortest distance from this ellipse to a segment, using the default tolerance.
public double DistanceTo(GeoLine2 line)
Parameters
lineGeoLine2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoLine2, Tolerance)
Gets the shortest distance from this ellipse to a segment, within a tolerance.
public double DistanceTo(GeoLine2 line, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoPolyline2)
Gets the shortest distance from this ellipse to a polyline, using the default tolerance.
public double DistanceTo(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
DistanceTo(GeoPolyline2, Tolerance)
Gets the shortest distance from this ellipse to a polyline, within a tolerance.
public double DistanceTo(GeoPolyline2 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
DistanceTo(GeoPolygon2)
Gets the shortest distance from this ellipse to a polygon, using the default tolerance.
public double DistanceTo(GeoPolygon2 polygon)
Parameters
polygonGeoPolygon2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
DistanceTo(GeoPolygon2, Tolerance)
Gets the shortest distance from this ellipse to a polygon, within a tolerance.
public double DistanceTo(GeoPolygon2 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
DistanceTo(GeoRectangle2)
Gets the shortest distance from this ellipse to a rectangle, using the default tolerance.
public double DistanceTo(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoRectangle2, Tolerance)
Gets the shortest distance from this ellipse to a rectangle, within a tolerance.
public double DistanceTo(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoTriangle2)
Gets the shortest distance from this ellipse to a triangle, using the default tolerance.
public double DistanceTo(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoTriangle2, Tolerance)
Gets the shortest distance from this ellipse to a triangle, within a tolerance.
public double DistanceTo(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoEdge2)
Gets the shortest distance from this ellipse to an edge, using the default tolerance.
public double DistanceTo(GeoEdge2 edge)
Parameters
edgeGeoEdge2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoEdge2, Tolerance)
Gets the shortest distance from this ellipse to an edge, within a tolerance.
public double DistanceTo(GeoEdge2 edge, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoCircle2)
Gets the shortest distance from this ellipse to a circle, using the default tolerance.
public double DistanceTo(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoCircle2, Tolerance)
Gets the shortest distance from this ellipse to a circle, within a tolerance.
public double DistanceTo(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoArc2)
Gets the shortest distance from this ellipse to an arc, using the default tolerance.
public double DistanceTo(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoArc2, Tolerance)
Gets the shortest distance from this ellipse to an arc, within a tolerance.
public double DistanceTo(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoPolylineArc2)
Gets the shortest distance from this ellipse to a curved chain, using the default tolerance.
public double DistanceTo(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
DistanceTo(GeoPolylineArc2, Tolerance)
Gets the shortest distance from this ellipse to a curved chain, within a tolerance.
public double DistanceTo(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
DistanceTo(GeoPolygonArc2)
Gets the shortest distance from this ellipse to a curved loop, using the default tolerance.
public double DistanceTo(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
DistanceTo(GeoPolygonArc2, Tolerance)
Gets the shortest distance from this ellipse to a curved loop, within a tolerance.
public double DistanceTo(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
DistanceTo(GeoEllipse2)
Gets the shortest distance from this ellipse to another ellipse, using the default tolerance.
public double DistanceTo(GeoEllipse2 other)
Parameters
otherGeoEllipse2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoEllipse2, Tolerance)
Gets the shortest distance from this ellipse to another ellipse, within a tolerance.
public double DistanceTo(GeoEllipse2 other, Tolerance tolerance)
Parameters
otherGeoEllipse2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoFace2)
Calculates the shortest distance from this ellipse to the material of a face.
public double DistanceTo(GeoFace2 face)
Parameters
faceGeoFace2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Remarks
Nought where the ellipse collides with the face, and otherwise the length of GetShortestLineTo(GeoFace2). The ellipse 15 by 5 about (50, 50), its major axis along X, lies in the hole of the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle and is 5 from its rim, at the ends of that axis.
Exceptions
- ArgumentNullException
Thrown when the face is null.
DistanceTo(GeoFace2, Tolerance)
Calculates the shortest distance from this ellipse to the material of a face, within a tolerance.
public double DistanceTo(GeoFace2 face, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
Remarks
Nought where the ellipse collides with the face, and otherwise the length of GetShortestLineTo(GeoFace2, Tolerance). The ellipse 15 by 5 about (50, 50), its major axis along X, lies in the hole of the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle and is 5 from its rim, at the ends of that axis.
Exceptions
- ArgumentNullException
Thrown when the face is null.
DistanceTo(GeoRay2)
Gets the distance from this ellipse to a ray, using the default tolerance.
public double DistanceTo(GeoRay2 ray)
Parameters
rayGeoRay2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoRay2, Tolerance)
Gets the distance from this ellipse to a ray, within a tolerance.
public double DistanceTo(GeoRay2 ray, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly. Exact to rounding, and only to about 1E-6 where the two nearly touch: see the note on ellipses in the plane guide.
DistanceTo(GeoXLine2)
Calculates the shortest distance from this ellipse to an infinite line, using the default tolerance.
public double DistanceTo(GeoXLine2 xline)
Parameters
xlineGeoXLine2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
DistanceTo(GeoXLine2, Tolerance)
Calculates the shortest distance from this ellipse to an infinite line, within a tolerance.
public double DistanceTo(GeoXLine2 xline, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
DistanceTo(GeoSpline2)
Calculates the shortest distance from this ellipse to a spline, using the default tolerance.
public double DistanceTo(GeoSpline2 spline)
Parameters
splineGeoSpline2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Exceptions
- ArgumentNullException
Thrown when the spline is null.
DistanceTo(GeoSpline2, Tolerance)
Calculates the shortest distance from this ellipse to a spline, within a tolerance.
public double DistanceTo(GeoSpline2 spline, Tolerance tolerance)
Parameters
splineGeoSpline2toleranceTolerance
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly; the tolerance is not read.
Exceptions
- ArgumentNullException
Thrown when the spline is null.