Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoEllipse3, GeoPoint3)

Gets the shortest segment joining the disc of an ellipse in space to a point, using the default tolerance.

public static GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse, GeoPoint3 point)

Parameters

ellipse GeoEllipse3
point GeoPoint3

Returns

GeoLine3

GetShortestLineTo(GeoEllipse3, GeoPoint3, Tolerance)

Gets the shortest segment joining the disc of an ellipse in space to a point.

public static GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse, GeoPoint3 point, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse, read as the filled disc its distance reads.

point GeoPoint3

The point, anywhere.

tolerance Tolerance

The tolerance, taken as a circle's is; it changes nothing, as for GetClosestPointOnSurface(GeoEllipse3, GeoPoint3, Tolerance).

Returns

GeoLine3

A segment from the point GetClosestPointOnSurface(GeoEllipse3, GeoPoint3, Tolerance) gives to point, as long as DistanceTo(GeoEllipse3, GeoPoint3, Tolerance): straight down where the foot lies within the rim, of no length for a point on the disc. From the ellipse 300 by 100 about the origin on the XY plane, the point (0, 0, 50) gets the segment from the centre, 50 long, and the point (330, 0, 40) the one from the end of the major axis at (300, 0, 0), also 50 long.