Method DistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
DistanceTo(GeoPoint2)
Calculates the shortest distance from this face to a point.
public double DistanceTo(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read as filled, so a point on the material is nought away and a point in one of its holes is measured to the rim it sits in.
DistanceTo(GeoPoint2, Tolerance)
Calculates the shortest distance from this face to a point, within a tolerance.
public double DistanceTo(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
DistanceTo(GeoArc2)
Calculates the shortest distance from the material of this face to an arc.
public double DistanceTo(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The upper half of the circle of radius 10 about (50, 50) 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 10 from its rim.
DistanceTo(GeoArc2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The upper half of the circle of radius 10 about (50, 50) 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 10 from its rim.
DistanceTo(GeoCircle2)
Calculates the shortest distance from the material of this face to a circle.
public double DistanceTo(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The circle of radius 10 about (50, 50) 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 10 from its rim; about (150, 50) it is 40 from the outline; about (15, 50), and of radius 200 about (50, 50), holding the whole face, it is nought away.
DistanceTo(GeoCircle2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The circle of radius 10 about (50, 50) 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 10 from its rim; about (150, 50) it is 40 from the outline; about (15, 50), and of radius 200 about (50, 50), holding the whole face, it is nought away.
DistanceTo(GeoEdge2)
Calculates the shortest distance from the material of this face to an edge.
public double DistanceTo(GeoEdge2 edge)
Parameters
edgeGeoEdge2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The straight edge from (40, 50) to (60, 50) 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 10 from its rim.
DistanceTo(GeoEdge2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The straight edge from (40, 50) to (60, 50) 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 10 from its rim.
DistanceTo(GeoLine2)
Calculates the shortest distance from the material of this face to a segment.
public double DistanceTo(GeoLine2 line)
Parameters
lineGeoLine2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The segment from (40, 50) to (60, 50) 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 10 from its rim; the one from (10, 50) to (20, 50) lies on the material and is nought away.
DistanceTo(GeoLine2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The segment from (40, 50) to (60, 50) 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 10 from its rim; the one from (10, 50) to (20, 50) lies on the material and is nought away.
DistanceTo(GeoPolygon2)
Calculates the shortest distance from the material of this face to a polygon.
public double DistanceTo(GeoPolygon2 polygon)
Parameters
polygonGeoPolygon2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The square 20 by 20 about (50, 50) 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 10 from its rim; about (130, 50) it is 20 from the outline.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
DistanceTo(GeoPolygon2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The square 20 by 20 about (50, 50) 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 10 from its rim; about (130, 50) it is 20 from the outline.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
DistanceTo(GeoPolygonArc2)
Calculates the shortest distance from the material of this face to a curved loop.
public double DistanceTo(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The loop with corners (40, 40), (60, 40), (60, 60), (40, 60) and straight edges 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
DistanceTo(GeoPolygonArc2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The loop with corners (40, 40), (60, 40), (60, 60), (40, 60) and straight edges 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
DistanceTo(GeoPolyline2)
Calculates the shortest distance from the material of this face to a polyline.
public double DistanceTo(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The chain (40, 40), (60, 40), (60, 60) 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
DistanceTo(GeoPolyline2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The chain (40, 40), (60, 40), (60, 60) 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
DistanceTo(GeoPolylineArc2)
Calculates the shortest distance from the material of this face to a curved chain.
public double DistanceTo(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The straight chain (40, 40), (60, 40), (60, 60) 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
DistanceTo(GeoPolylineArc2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The straight chain (40, 40), (60, 40), (60, 60) 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 10 from its rim.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
DistanceTo(GeoRectangle2)
Calculates the shortest distance from the material of this face to a rectangle.
public double DistanceTo(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The rectangle 20 by 20 about (50, 50) 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 10 from its rim.
DistanceTo(GeoRectangle2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The rectangle 20 by 20 about (50, 50) 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 10 from its rim.
DistanceTo(GeoTriangle2)
Calculates the shortest distance from the material of this face to a triangle.
public double DistanceTo(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The triangle (40, 40), (60, 40), (50, 60) 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 10 from its rim.
DistanceTo(GeoTriangle2, Tolerance)
Calculates the shortest distance from the material of this face 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.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. The triangle (40, 40), (60, 40), (50, 60) 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 10 from its rim.
DistanceTo(GeoFace2)
Calculates the shortest distance between the materials of this face and another.
public double DistanceTo(GeoFace2 other)
Parameters
otherGeoFace2
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. A square 20 by 20 about (50, 50) is 10 from the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle, the width of the gap round it in the hole; about (130, 50) it is 20 away.
Exceptions
- ArgumentNullException
Thrown when the other face is null.
DistanceTo(GeoFace2, Tolerance)
Calculates the shortest distance between the materials of this face and another, within a tolerance.
public double DistanceTo(GeoFace2 other, Tolerance tolerance)
Parameters
Returns
- double
Nought only where they truly meet, otherwise the gap, measured exactly.
Remarks
The face is read by its material, its outline less its holes: nought where the two meet, otherwise the gap between the boundaries, measured exactly. A square 20 by 20 about (50, 50) is 10 from the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle, the width of the gap round it in the hole; about (130, 50) it is 20 away.
Exceptions
- ArgumentNullException
Thrown when the other face is null.
DistanceTo(GeoRay2)
Gets the distance from the material of this face 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.
DistanceTo(GeoRay2, Tolerance)
Gets the distance from the material of this face 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.
DistanceTo(GeoXLine2)
Calculates the shortest distance from this face 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 face 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 face 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 face 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.