Class Distance2
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Measuring a straight shape against one that curves.
public static class Distance2
- Inheritance
-
Distance2
- Inherited Members
Remarks
The curved shapes could already be measured against the straight ones; these are the pairs that had no mirror image to fall back on, so that a polygon can be asked about an arc, and a rectangle about a chain, in the same breath as everything else. A rectangle is read as its own polygon, and an arc is measured as an arc rather than cut into pieces first.
Methods
- DistanceTo(GeoCircle2, GeoCircle2)
Calculates the shortest boundary distance between two circles. Returns 0 if the two circles intersect or overlap.
- DistanceTo(GeoCircle2, GeoLine2)
Calculates the shortest boundary distance from a circle to a line segment. Returns 0 if the line segment intersects or is inside the circle.
- DistanceTo(GeoCircle2, GeoPoint2)
Calculates the shortest boundary distance from a circle to a point. Returns 0 if the point is inside the circle.
- DistanceTo(GeoCircle2, GeoPolygon2)
Calculates the shortest boundary distance from a circle to a polygon. Returns 0 if they intersect or overlap.
- DistanceTo(GeoCircle2, GeoRectangle2)
Calculates the shortest boundary distance from a circle to a rectangle. Returns 0 if they intersect or overlap.
- DistanceTo(GeoFace2, GeoPoint2)
Calculates the shortest distance from a face to a point.
- DistanceTo(GeoFace2, GeoPoint2, Tolerance)
Calculates the shortest distance from a face to a point, within a tolerance.
- DistanceTo(GeoLine2, GeoLine2)
Calculates the shortest distance between two line segments using default tolerance.
- DistanceTo(GeoLine2, GeoLine2, Tolerance)
Calculates the shortest distance between two line segments within tolerance.
- DistanceTo(GeoLine2, GeoPoint2)
Calculates the shortest distance from a line segment to a point.
- DistanceTo(GeoPoint2, GeoPoint2)
Calculates the Euclidean distance between two points.
- DistanceTo(GeoPolygon2, GeoArc2)
Calculates the shortest distance from a polygon to an arc.
- DistanceTo(GeoPolygon2, GeoArc2, Tolerance)
Calculates the shortest distance from a polygon to an arc, within a tolerance.
- DistanceTo(GeoPolygon2, GeoLine2)
Calculates the shortest boundary distance from a polygon to a line segment.
- DistanceTo(GeoPolygon2, GeoPoint2)
Calculates the shortest distance from a polygon boundary to a point.
- DistanceTo(GeoPolygon2, GeoPolygon2)
Calculates the shortest boundary distance between two polygons. Returns 0 if they intersect or overlap.
- DistanceTo(GeoPolygonArc2, GeoArc2)
Gets the distance from a loop that may curve to an arc.
- DistanceTo(GeoPolygonArc2, GeoArc2, Tolerance)
Gets the distance from a loop that may curve to an arc, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoCircle2)
Gets the distance from a loop that may curve to a circle.
- DistanceTo(GeoPolygonArc2, GeoCircle2, Tolerance)
Gets the distance from a loop that may curve to a circle, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoLine2)
Gets the distance from a loop that may curve to a straight segment.
- DistanceTo(GeoPolygonArc2, GeoLine2, Tolerance)
Gets the distance from a loop that may curve to a straight segment, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoPoint2)
Gets the distance from a loop that may curve to a point.
- DistanceTo(GeoPolygonArc2, GeoPoint2, Tolerance)
Gets the distance from a loop that may curve to a point, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoPolygon2)
Gets the distance from a loop that may curve to a straight loop.
- DistanceTo(GeoPolygonArc2, GeoPolygon2, Tolerance)
Gets the distance from a loop that may curve to a straight loop, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoPolygonArc2)
Gets the distance from a loop that may curve to a loop that may curve.
- DistanceTo(GeoPolygonArc2, GeoPolygonArc2, Tolerance)
Gets the distance from a loop that may curve to a loop that may curve, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoPolyline2)
Gets the distance from a loop that may curve to a straight chain.
- DistanceTo(GeoPolygonArc2, GeoPolyline2, Tolerance)
Gets the distance from a loop that may curve to a straight chain, within a tolerance.
- DistanceTo(GeoPolygonArc2, GeoPolylineArc2)
Gets the distance from a loop that may curve to a chain that may curve.
- DistanceTo(GeoPolygonArc2, GeoPolylineArc2, Tolerance)
Gets the distance from a loop that may curve to a chain that may curve, within a tolerance.
- DistanceTo(GeoPolyline2, GeoArc2)
Calculates the shortest distance from a polyline to an arc.
- DistanceTo(GeoPolyline2, GeoArc2, Tolerance)
Calculates the shortest distance from a polyline to an arc, within a tolerance.
- DistanceTo(GeoPolyline2, GeoCircle2)
Calculates the shortest distance between a polyline and a circle. Returns 0 if they intersect.
- DistanceTo(GeoPolyline2, GeoLine2)
Calculates the shortest distance between a polyline and a line segment. Returns 0 if they intersect.
- DistanceTo(GeoPolyline2, GeoPoint2)
Calculates the shortest Euclidean distance from a polyline to a point.
- DistanceTo(GeoPolyline2, GeoPolygon2)
Calculates the shortest distance between a polyline and a polygon. Returns 0 if they intersect.
- DistanceTo(GeoPolyline2, GeoPolyline2)
Calculates the shortest distance between two polylines. Returns 0 if they intersect.
- DistanceTo(GeoPolyline2, GeoRectangle2)
Calculates the shortest distance between a polyline and a rectangle. Returns 0 if they intersect.
- DistanceTo(GeoPolylineArc2, GeoArc2)
Gets the distance from a chain that may curve to an arc.
- DistanceTo(GeoPolylineArc2, GeoArc2, Tolerance)
Gets the distance from a chain that may curve to an arc, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoCircle2)
Gets the distance from a chain that may curve to a circle.
- DistanceTo(GeoPolylineArc2, GeoCircle2, Tolerance)
Gets the distance from a chain that may curve to a circle, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoLine2)
Gets the distance from a chain that may curve to a straight segment.
- DistanceTo(GeoPolylineArc2, GeoLine2, Tolerance)
Gets the distance from a chain that may curve to a straight segment, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoPoint2)
Gets the distance from a chain that may curve to a point.
- DistanceTo(GeoPolylineArc2, GeoPoint2, Tolerance)
Gets the distance from a chain that may curve to a point, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoPolygon2)
Gets the distance from a chain that may curve to a straight loop.
- DistanceTo(GeoPolylineArc2, GeoPolygon2, Tolerance)
Gets the distance from a chain that may curve to a straight loop, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoPolygonArc2)
Gets the distance from a chain that may curve to a loop that may curve.
- DistanceTo(GeoPolylineArc2, GeoPolygonArc2, Tolerance)
Gets the distance from a chain that may curve to a loop that may curve, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoPolyline2)
Gets the distance from a chain that may curve to a straight chain.
- DistanceTo(GeoPolylineArc2, GeoPolyline2, Tolerance)
Gets the distance from a chain that may curve to a straight chain, within a tolerance.
- DistanceTo(GeoPolylineArc2, GeoPolylineArc2)
Gets the distance from a chain that may curve to a chain that may curve.
- DistanceTo(GeoPolylineArc2, GeoPolylineArc2, Tolerance)
Gets the distance from a chain that may curve to a chain that may curve, within a tolerance.
- DistanceTo(GeoRectangle2, GeoArc2)
Calculates the shortest distance from a rectangle to an arc.
- DistanceTo(GeoRectangle2, GeoArc2, Tolerance)
Calculates the shortest distance from a rectangle to an arc, within a tolerance.
- DistanceTo(GeoRectangle2, GeoLine2)
Calculates the shortest boundary distance from a rectangle to a line segment. Returns 0 if the line segment intersects or lies inside the rectangle.
- DistanceTo(GeoRectangle2, GeoPoint2)
Calculates the shortest Euclidean distance from a rectangle to a point. Returns 0 if the point is inside the rectangle.
- DistanceTo(GeoRectangle2, GeoPolygon2)
Calculates the shortest boundary distance from a rectangle to a polygon. Returns 0 if they intersect or overlap.
- DistanceTo(GeoRectangle2, GeoPolygonArc2)
Calculates the shortest distance from a rectangle to a loop that may curve.
- DistanceTo(GeoRectangle2, GeoPolygonArc2, Tolerance)
Calculates the shortest distance from a rectangle to a loop that may curve, within a tolerance.
- DistanceTo(GeoRectangle2, GeoPolylineArc2)
Calculates the shortest distance from a rectangle to a chain that may curve.
- DistanceTo(GeoRectangle2, GeoPolylineArc2, Tolerance)
Calculates the shortest distance from a rectangle to a chain that may curve, within a tolerance.
- DistanceTo(GeoRectangle2, GeoRectangle2)
Calculates the shortest boundary distance between two rectangles. Returns 0 if they intersect or overlap.
- GetDistanceSquaredTo(GeoPoint2, GeoPoint2)
Calculates the squared Euclidean distance between two points.
- SignedDistanceTo(GeoCircle2, GeoPoint2)
Calculates the distance from a circle to a point, negative for a point inside it.
- SignedDistanceTo(GeoCircle2, GeoPoint2, Tolerance)
Calculates the distance from a circle to a point, negative for a point inside it, within a tolerance.
- SignedDistanceTo(GeoFace2, GeoPoint2)
Calculates the distance from a face to a point, negative for a point on the material.
- SignedDistanceTo(GeoFace2, GeoPoint2, Tolerance)
Calculates the distance from a face to a point, negative for a point on the material, within a tolerance.
- SignedDistanceTo(GeoPolygon2, GeoPoint2)
Calculates the distance from a polygon to a point, negative for a point inside it.
- SignedDistanceTo(GeoPolygon2, GeoPoint2, Tolerance)
Calculates the distance from a polygon to a point, negative for a point inside it, within a tolerance.
- SignedDistanceTo(GeoPolygonArc2, GeoPoint2)
Calculates the distance from a loop that may curve to a point, negative for a point inside it.
- SignedDistanceTo(GeoPolygonArc2, GeoPoint2, Tolerance)
Calculates the distance from a loop that may curve to a point, negative for a point inside it, within a tolerance.
- SignedDistanceTo(GeoRectangle2, GeoPoint2)
Calculates the distance from a rectangle to a point, negative for a point inside it.
- SignedDistanceTo(GeoRectangle2, GeoPoint2, Tolerance)
Calculates the distance from a rectangle to a point, negative for a point inside it, within a tolerance.