Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPoint3)

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

public GeoLine3 GetShortestLineTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

GeoLine3

Remarks

The ellipse is read as the filled disc its distance reads, so a point above it is joined straight down and the segment is as long as DistanceTo(GeoPoint3): from the ellipse 300 by 100 about the origin on the XY plane, the point (0, 0, 50) gets the one from the centre, 50 long, and the point (330, 0, 40) the one from (300, 0, 0), also 50 long.

GetShortestLineTo(GeoPoint3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3
tolerance Tolerance

Returns

GeoLine3

Remarks

The ellipse is read as the filled disc its distance reads, so a point above it is joined straight down and the segment is as long as DistanceTo(GeoPoint3): from the ellipse 300 by 100 about the origin on the XY plane, the point (0, 0, 50) gets the one from the centre, 50 long, and the point (330, 0, 40) the one from (300, 0, 0), also 50 long. The tolerance is taken so that this reads like every other shape; it changes nothing here.

GetShortestLineTo(GeoSphere3)

Gets the shortest segment leaving this ellipse 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 ellipse 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(GeoEllipse3, Tolerance) turned round, so that it leaves this ellipse and lands on the surface of the ball.

GetShortestLineTo(GeoSpline3)

Gets the shortest segment leaving this ellipse 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 ellipse 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 ellipse and lands on the spline.

Exceptions

ArgumentNullException

Thrown when the spline is null.