Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoLine3)

Gets the shortest segment joining this ray to a segment, using the default tolerance.

public GeoLine3 GetShortestLineTo(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the segment, so its length is the clearance between them and nought where they touch.

GetShortestLineTo(GeoLine3, Tolerance)

Gets the shortest segment joining this ray to a segment, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3
tolerance Tolerance

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the segment, so its length is the clearance between them and nought where they touch.

GetShortestLineTo(GeoTriangle3)

Gets the shortest segment joining this ray to a triangle, using the default tolerance.

public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the triangle, so its length is the clearance between them and nought where they touch.

GetShortestLineTo(GeoTriangle3, Tolerance)

Gets the shortest segment joining this ray to a triangle, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3
tolerance Tolerance

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the triangle, so its length is the clearance between them and nought where they touch.

GetShortestLineTo(GeoSolid3)

Gets the shortest segment joining this ray to a solid, using the default tolerance.

public GeoLine3 GetShortestLineTo(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the solid, so its length is the clearance between them and nought where they touch.

GetShortestLineTo(GeoSolid3, Tolerance)

Gets the shortest segment joining this ray to a solid, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

GeoLine3

Remarks

The segment leaves this ray and lands on the solid, so its length is the clearance between them and nought where they touch.