Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoSphere3)

Gets the shortest segment leaving this axis-aligned box and landing on a ball, using the default tolerance.

public GeoLine3 GetShortestLineTo(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

GeoLine3

GetShortestLineTo(GeoSphere3, Tolerance)

Gets the shortest segment leaving this axis-aligned box and landing on a ball, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3
tolerance Tolerance

Returns

GeoLine3

The segment of GetShortestLineTo(GeoAabb3, Tolerance) turned round, so that it leaves this axis-aligned box and lands on the surface of the ball.

Exceptions

InvalidOperationException

Thrown when the box is empty, which has no point to leave from.

GetShortestLineTo(GeoSpline3)

Gets the shortest segment leaving this box and landing on a spline, using the default tolerance.

public GeoLine3 GetShortestLineTo(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the spline is null.

GetShortestLineTo(GeoSpline3, Tolerance)

Gets the shortest segment leaving this box and landing on a spline, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

GeoLine3

The segment the spline gives, turned round: it starts on this box and lands on the spline.

Exceptions

ArgumentNullException

Thrown when the spline is null.