Method DistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
DistanceTo(GeoPoint2)
Gets the distance from the edge to a point.
public double DistanceTo(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
DistanceTo(GeoPoint2, Tolerance)
Gets the distance from the edge to a point, within a tolerance.
public double DistanceTo(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
DistanceTo(GeoLine2)
Gets the distance from the edge to a straight segment.
public double DistanceTo(GeoLine2 line)
Parameters
lineGeoLine2
Returns
DistanceTo(GeoLine2, Tolerance)
Gets the distance from the edge to a straight segment, within a tolerance.
public double DistanceTo(GeoLine2 line, Tolerance tolerance)
Parameters
Returns
DistanceTo(GeoEdge2)
Gets the distance from the edge to another edge.
public double DistanceTo(GeoEdge2 other)
Parameters
otherGeoEdge2
Returns
DistanceTo(GeoEdge2, Tolerance)
Gets the distance from the edge to another edge, within a tolerance.
public double DistanceTo(GeoEdge2 other, Tolerance tolerance)
Parameters
Returns
Remarks
Four cases, and each is answered exactly rather than by cutting the arcs up: segment to segment, segment to arc either way round, and arc to arc.
DistanceTo(GeoCircle2)
Gets the distance from the edge to a circle.
public double DistanceTo(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
DistanceTo(GeoCircle2, Tolerance)
Gets the distance from the edge to a circle, within a tolerance.
public double DistanceTo(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
DistanceTo(GeoArc2)
Gets the distance from the edge to an arc.
public double DistanceTo(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
DistanceTo(GeoArc2, Tolerance)
Gets the distance from the edge to an arc, within a tolerance.
public double DistanceTo(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
Remarks
The arc is taken as it is rather than as an edge, so one sweeping a whole turn is measured against too.
DistanceTo(GeoPolygon2)
Gets the distance from this edge to a polygon.
public double DistanceTo(GeoPolygon2 poly)
Parameters
polyGeoPolygon2
Returns
DistanceTo(GeoPolygonArc2)
Gets the distance from this edge to a curved loop.
public double DistanceTo(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
DistanceTo(GeoPolygonArc2, Tolerance)
Gets the distance from this edge to a curved loop, within a tolerance.
public double DistanceTo(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
DistanceTo(GeoPolyline2)
Gets the distance from this edge to a polyline.
public double DistanceTo(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
DistanceTo(GeoPolylineArc2)
Gets the distance from this edge to a curved chain.
public double DistanceTo(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
DistanceTo(GeoPolylineArc2, Tolerance)
Gets the distance from this edge to a curved chain, within a tolerance.
public double DistanceTo(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
DistanceTo(GeoRectangle2)
Gets the distance from this edge to a rectangle.
public double DistanceTo(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
DistanceTo(GeoTriangle2)
Gets the distance from this edge to a triangle.
public double DistanceTo(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2