Class Distance3
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
Provides static methods for distance calculations in 3D space.
Every distance here is the shortest gap between the two shapes, and is zero when they touch or overlap. A bounded shape is measured as the set of points it actually occupies: a segment ends at its endpoints, a triangle includes its interior, and a plane is infinite in every direction.
public static class Distance3
- Inheritance
-
Distance3
- Inherited Members
Remarks
A chain could be measured to a point and to nothing else, which left the way out of a curved chain leading nowhere: ToPolyline3(double) hands back a straight chain following the arcs as closely as asked, and there was then nothing to ask it. These are the pairs that close that gap, and every one of them is exact for the straight chain it is given.
So the way to measure a bent bar against anything is to say how closely it should be followed and then
ask the ordinary question: bar.ToPolyline3(0.1).DistanceTo(slab). The accuracy sits in the call
where it can be seen, which is the same bargain GeoCircle3 offers.
Methods
- DistanceTo(GeoAabb3, GeoAabb3)
Calculates the shortest distance between two axis-aligned boxes.
- DistanceTo(GeoAabb3, GeoPoint3)
Calculates the perpendicular distance from an axis-aligned box to a point.
- DistanceTo(GeoCircle3, GeoPoint3)
Calculates the shortest distance from a circular disc to a point.
- DistanceTo(GeoCircle3, GeoPoint3, Tolerance)
Calculates the shortest distance from a circular disc to a point, within a tolerance.
- DistanceTo(GeoFace3, GeoPoint3)
Calculates the shortest distance from a face to a point.
- DistanceTo(GeoFace3, GeoPoint3, Tolerance)
Calculates the shortest distance from a face to a point, within a tolerance.
- DistanceTo(GeoLine3, GeoLine3)
Calculates the shortest distance between two line segments.
- DistanceTo(GeoLine3, GeoLine3, Tolerance)
Calculates the shortest distance between two line segments, within a tolerance.
- DistanceTo(GeoLine3, GeoPoint3)
Calculates the shortest distance from a line segment to a point.
- DistanceTo(GeoLine3, GeoPoint3, Tolerance)
Calculates the shortest distance from a line segment to a point, within a tolerance.
- DistanceTo(GeoLine3, GeoPolygon3)
Calculates the shortest distance between a line segment and a polygon.
- DistanceTo(GeoLine3, GeoPolygon3, Tolerance)
Calculates the shortest distance between a line segment and a polygon, within a tolerance.
- DistanceTo(GeoLine3, GeoSolid3)
Calculates the shortest distance between a line segment and a solid.
- DistanceTo(GeoLine3, GeoSolid3, Tolerance)
Calculates the shortest distance between a line segment and a solid. A segment reaching into the body is at distance zero.
- DistanceTo(GeoLine3, GeoTriangle3)
Calculates the shortest distance between a line segment and a triangle.
- DistanceTo(GeoLine3, GeoTriangle3, Tolerance)
Calculates the shortest distance between a line segment and a triangle, within a tolerance.
- DistanceTo(GeoObb3, GeoObb3)
Calculates the shortest distance between two oriented boxes.
- DistanceTo(GeoObb3, GeoObb3, Tolerance)
Calculates the shortest distance between two oriented boxes, within a tolerance.
- DistanceTo(GeoObb3, GeoPoint3)
Calculates the shortest distance from an oriented box to a point. A point inside the box is at distance zero.
- DistanceTo(GeoPlane3, GeoLine3)
Calculates the shortest distance from a plane to a line segment.
- DistanceTo(GeoPlane3, GeoPlane3)
Calculates the distance between two planes.
- DistanceTo(GeoPlane3, GeoPlane3, Tolerance)
Calculates the distance between two planes, within a tolerance.
- DistanceTo(GeoPlane3, GeoPoint3)
Calculates the perpendicular distance from a plane to a point.
- DistanceTo(GeoPoint3, GeoPoint3)
Calculates the distance between two points.
- DistanceTo(GeoPolygon3, GeoPoint3)
Calculates the shortest distance from a polygon to a point.
- DistanceTo(GeoPolygon3, GeoPoint3, Tolerance)
Calculates the shortest distance from a polygon to a point, within a tolerance.
- DistanceTo(GeoPolyline3, GeoAabb3)
Calculates the shortest distance between a chain and an axis-aligned box.
- DistanceTo(GeoPolyline3, GeoAabb3, Tolerance)
Calculates the shortest distance between a chain and an axis-aligned box, within a tolerance.
- DistanceTo(GeoPolyline3, GeoLine3)
Calculates the shortest distance between a chain and a line segment.
- DistanceTo(GeoPolyline3, GeoLine3, Tolerance)
Calculates the shortest distance between a chain and a line segment, within a tolerance.
- DistanceTo(GeoPolyline3, GeoObb3)
Calculates the shortest distance between a chain and an oriented box.
- DistanceTo(GeoPolyline3, GeoObb3, Tolerance)
Calculates the shortest distance between a chain and an oriented box, within a tolerance.
- DistanceTo(GeoPolyline3, GeoPlane3)
Calculates the shortest distance between a chain and a plane.
- DistanceTo(GeoPolyline3, GeoPlane3, Tolerance)
Calculates the shortest distance between a chain and a plane, within a tolerance.
- DistanceTo(GeoPolyline3, GeoPoint3)
Calculates the shortest distance from a polyline to a point.
- DistanceTo(GeoPolyline3, GeoPoint3, Tolerance)
Calculates the shortest distance from a polyline to a point, within a tolerance.
- DistanceTo(GeoPolyline3, GeoPolygon3)
Calculates the shortest distance between a chain and a polygon.
- DistanceTo(GeoPolyline3, GeoPolygon3, Tolerance)
Calculates the shortest distance between a chain and a polygon, within a tolerance.
- DistanceTo(GeoPolyline3, GeoPolyline3)
Calculates the shortest distance between two chains.
- DistanceTo(GeoPolyline3, GeoPolyline3, Tolerance)
Calculates the shortest distance between two chains, within a tolerance.
- DistanceTo(GeoPolyline3, GeoTriangle3)
Calculates the shortest distance between a chain and a triangle.
- DistanceTo(GeoPolyline3, GeoTriangle3, Tolerance)
Calculates the shortest distance between a chain and a triangle, within a tolerance.
- DistanceTo(GeoRay3, GeoLine3)
Calculates the shortest distance between a ray and a line segment.
- DistanceTo(GeoRay3, GeoLine3, Tolerance)
Calculates the shortest distance between a ray and a line segment, within a tolerance.
- DistanceTo(GeoRay3, GeoPoint3)
Calculates the shortest distance from a ray to a point.
- DistanceTo(GeoRay3, GeoSolid3)
Calculates the shortest distance between a ray and a solid.
- DistanceTo(GeoRay3, GeoSolid3, Tolerance)
Calculates the shortest distance between a ray and a solid, within a tolerance.
- DistanceTo(GeoRay3, GeoTriangle3)
Calculates the shortest distance between a ray and a triangle.
- DistanceTo(GeoRay3, GeoTriangle3, Tolerance)
Calculates the shortest distance between a ray and a triangle, within a tolerance.
- DistanceTo(GeoSolid3, GeoAabb3)
Calculates the shortest distance between a solid and an axis-aligned box.
- DistanceTo(GeoSolid3, GeoAabb3, Tolerance)
Calculates the shortest distance between a solid and an axis-aligned box, within a tolerance.
- DistanceTo(GeoSolid3, GeoObb3)
Calculates the shortest distance between a solid and an oriented box.
- DistanceTo(GeoSolid3, GeoObb3, Tolerance)
Calculates the shortest distance between a solid and an oriented box, within a tolerance.
- DistanceTo(GeoSolid3, GeoPlane3)
Calculates the shortest distance between a solid and a plane.
- DistanceTo(GeoSolid3, GeoPlane3, Tolerance)
Calculates the shortest distance between a solid and a plane, within a tolerance.
- DistanceTo(GeoSolid3, GeoPoint3)
Calculates the shortest distance from a solid to a point. A point inside the solid is at distance zero.
- DistanceTo(GeoSolid3, GeoPoint3, Tolerance)
Calculates the shortest distance from a solid to a point, within a tolerance.
- DistanceTo(GeoSolid3, GeoPolygon3)
Calculates the shortest distance between a solid and a polygon.
- DistanceTo(GeoSolid3, GeoPolygon3, Tolerance)
Calculates the shortest distance between a solid and a polygon, within a tolerance.
- DistanceTo(GeoSolid3, GeoPolyline3)
Calculates the shortest distance between a solid and a polyline.
- DistanceTo(GeoSolid3, GeoPolyline3, Tolerance)
Calculates the shortest distance between a solid and a polyline, within a tolerance.
- DistanceTo(GeoSolid3, GeoSolid3)
Calculates the shortest distance between two solids.
- DistanceTo(GeoSolid3, GeoSolid3, Tolerance)
Calculates the shortest distance between two solids, within a tolerance.
- DistanceTo(GeoSolid3, GeoTriangle3)
Calculates the shortest distance between a solid and a triangle.
- DistanceTo(GeoSolid3, GeoTriangle3, Tolerance)
Calculates the shortest distance between a solid and a triangle, within a tolerance.
- DistanceTo(GeoTriangle3, GeoPoint3)
Calculates the shortest distance from a triangle to a point.
- DistanceTo(GeoTriangle3, GeoTriangle3)
Calculates the shortest distance between two triangles.
- DistanceTo(GeoTriangle3, GeoTriangle3, Tolerance)
Calculates the shortest distance between two triangles, within a tolerance.
- GetDistanceSquaredTo(GeoPoint3, GeoPoint3)
Calculates the squared distance between two points.
- SignedDistanceTo(GeoAabb3, GeoPoint3)
Calculates the distance from an axis-aligned box to a point, negative for a point inside it.
- SignedDistanceTo(GeoAabb3, GeoPoint3, Tolerance)
Calculates the distance from an axis-aligned box to a point, negative for a point inside it, within a tolerance.
- SignedDistanceTo(GeoObb3, GeoPoint3)
Calculates the distance from an oriented box to a point, negative for a point inside it.
- SignedDistanceTo(GeoObb3, GeoPoint3, Tolerance)
Calculates the distance from an oriented box to a point, negative for a point inside it, within a tolerance.
- SignedDistanceTo(GeoSolid3, GeoPoint3)
Calculates the distance from a solid to a point, negative for a point inside the body.
- SignedDistanceTo(GeoSolid3, GeoPoint3, Tolerance)
Calculates the distance from a solid to a point, negative for a point inside the body, within a tolerance.