Method DistanceTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
DistanceTo(GeoPoint3)
Calculates the shortest distance from this solid to a point. A point inside is at distance zero.
public double DistanceTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
DistanceTo(GeoPoint3, Tolerance)
Calculates the shortest distance from this solid to a point, within a tolerance.
public double DistanceTo(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
A point inside the body is at distance zero.
DistanceTo(GeoLine3)
Calculates the shortest distance from this solid to a line segment.
public double DistanceTo(GeoLine3 line)
Parameters
lineGeoLine3
Returns
DistanceTo(GeoLine3, Tolerance)
Calculates the shortest distance from this solid to a line segment, within a tolerance.
public double DistanceTo(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
Remarks
A segment reaching into the body is at distance zero.
DistanceTo(GeoSolid3)
Calculates the shortest distance from this solid to another solid.
public double DistanceTo(GeoSolid3 other)
Parameters
otherGeoSolid3
Returns
DistanceTo(GeoSolid3, Tolerance)
Calculates the shortest distance from this solid to another solid, within a tolerance.
public double DistanceTo(GeoSolid3 other, Tolerance tolerance)
Parameters
Returns
Remarks
Bodies that touch or overlap are at distance zero, which includes one sitting wholly inside the other without their surfaces meeting.
DistanceTo(GeoTriangle3)
Calculates the shortest distance from this solid to a triangle.
public double DistanceTo(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
DistanceTo(GeoTriangle3, Tolerance)
Calculates the shortest distance from this solid to a triangle, within a tolerance.
public double DistanceTo(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3toleranceTolerance
Returns
DistanceTo(GeoPolygon3)
Calculates the shortest distance from this solid to a polygon.
public double DistanceTo(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
DistanceTo(GeoPolygon3, Tolerance)
Calculates the shortest distance from this solid to a polygon, within a tolerance.
public double DistanceTo(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3toleranceTolerance
Returns
DistanceTo(GeoPolyline3)
Calculates the shortest distance from this solid to a polyline.
public double DistanceTo(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
DistanceTo(GeoPolyline3, Tolerance)
Calculates the shortest distance from this solid to a polyline, within a tolerance.
public double DistanceTo(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
DistanceTo(GeoPlane3)
Calculates the shortest distance from this solid to a plane.
public double DistanceTo(GeoPlane3 plane)
Parameters
planeGeoPlane3
Returns
Remarks
A body reaching the plane or crossing it is at distance zero.
DistanceTo(GeoPlane3, Tolerance)
Calculates the shortest distance from this solid to a plane, within a tolerance.
public double DistanceTo(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
DistanceTo(GeoObb3)
Calculates the shortest distance from this solid to an oriented box.
public double DistanceTo(GeoObb3 box)
Parameters
boxGeoObb3
Returns
DistanceTo(GeoObb3, Tolerance)
Calculates the shortest distance from this solid to an oriented box, within a tolerance.
public double DistanceTo(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
DistanceTo(GeoAabb3)
Calculates the shortest distance from this solid to an axis-aligned box.
public double DistanceTo(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
DistanceTo(GeoAabb3, Tolerance)
Calculates the shortest distance from this solid to an axis-aligned box, within a tolerance.
public double DistanceTo(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
DistanceTo(GeoRay3)
Calculates the shortest distance from this solid to a ray.
public double DistanceTo(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
Remarks
A ray starting inside the body, or running into it, is at distance zero.
DistanceTo(GeoRay3, Tolerance)
Calculates the shortest distance from this solid to a ray, within a tolerance.
public double DistanceTo(GeoRay3 ray, Tolerance tolerance)