Table of Contents

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

point GeoPoint3

Returns

double

DistanceTo(GeoPoint3, Tolerance)

Calculates the shortest distance from this solid to a point, within a tolerance.

public double DistanceTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3
tolerance Tolerance

Returns

double

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

line GeoLine3

Returns

double

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

line GeoLine3
tolerance Tolerance

Returns

double

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

other GeoSolid3

Returns

double

DistanceTo(GeoSolid3, Tolerance)

Calculates the shortest distance from this solid to another solid, within a tolerance.

public double DistanceTo(GeoSolid3 other, Tolerance tolerance)

Parameters

other GeoSolid3
tolerance Tolerance

Returns

double

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

triangle GeoTriangle3

Returns

double

DistanceTo(GeoTriangle3, Tolerance)

Calculates the shortest distance from this solid to a triangle, within a tolerance.

public double DistanceTo(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3
tolerance Tolerance

Returns

double

DistanceTo(GeoPolygon3)

Calculates the shortest distance from this solid to a polygon.

public double DistanceTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

double

DistanceTo(GeoPolygon3, Tolerance)

Calculates the shortest distance from this solid to a polygon, within a tolerance.

public double DistanceTo(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3
tolerance Tolerance

Returns

double

DistanceTo(GeoPolyline3)

Calculates the shortest distance from this solid to a polyline.

public double DistanceTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

double

DistanceTo(GeoPolyline3, Tolerance)

Calculates the shortest distance from this solid to a polyline, within a tolerance.

public double DistanceTo(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3
tolerance Tolerance

Returns

double

DistanceTo(GeoPlane3)

Calculates the shortest distance from this solid to a plane.

public double DistanceTo(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

double

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

plane GeoPlane3
tolerance Tolerance

Returns

double

DistanceTo(GeoObb3)

Calculates the shortest distance from this solid to an oriented box.

public double DistanceTo(GeoObb3 box)

Parameters

box GeoObb3

Returns

double

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

box GeoObb3
tolerance Tolerance

Returns

double

DistanceTo(GeoAabb3)

Calculates the shortest distance from this solid to an axis-aligned box.

public double DistanceTo(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

double

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

box GeoAabb3
tolerance Tolerance

Returns

double

DistanceTo(GeoRay3)

Calculates the shortest distance from this solid to a ray.

public double DistanceTo(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

double

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)

Parameters

ray GeoRay3
tolerance Tolerance

Returns

double