Table of Contents

Method DistanceTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

DistanceTo(GeoPoint3)

Calculates the shortest distance from this segment to a point.

public double DistanceTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

double

DistanceTo(GeoLine3)

Calculates the shortest distance between this segment and another segment.

public double DistanceTo(GeoLine3 other)

Parameters

other GeoLine3

Returns

double

DistanceTo(GeoRay3)

Calculates the shortest distance between this segment and a ray.

public double DistanceTo(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

double

DistanceTo(GeoPlane3)

Calculates the shortest distance between this segment and a plane.

public double DistanceTo(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

double

DistanceTo(GeoTriangle3)

Calculates the shortest distance between this segment and a triangle.

public double DistanceTo(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

double

DistanceTo(GeoPolygon3)

Calculates the shortest distance between this segment and a polygon.

public double DistanceTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

double

DistanceTo(GeoSolid3)

Calculates the shortest distance between this segment and a solid. A segment reaching into the body is at distance zero.

public double DistanceTo(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

double

DistanceTo(GeoPolyline3)

Gets the distance from this segment to a polyline, using the default tolerance.

public double DistanceTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

double

DistanceTo(GeoPolyline3, Tolerance)

Gets the distance from this segment to a polyline, within a tolerance.

public double DistanceTo(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3
tolerance Tolerance

Returns

double