Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPoint3)

Gets the shortest line from this loop's boundary to a point.

public GeoLine3 GetShortestLineTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

GeoLine3

GetShortestLineTo(GeoPoint3, Tolerance)

Gets the shortest line from this loop's boundary to a point, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3

The point; it does not have to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

The line leaving the boundary and landing on the point.

Remarks

A point off the plane stands at the same height above every point of the boundary, so the nearest place to it is the nearest place to its shadow. That makes this exact without any coplanarity. The line leaves the point GetClosestPointOnBoundary(GeoPoint3, Tolerance) gives, so near the centre of a bend it can be longer than DistanceTo(GeoPoint3, Tolerance), by at most twice the foot's offset from the centre, as GetClosestPointOnBoundary(GeoPoint3, Tolerance) says; beside a straight side it is as long as the distance however short the side.

GetShortestLineTo(GeoLine3)

Gets the shortest line from this loop's boundary to a segment in the same plane.

public GeoLine3 GetShortestLineTo(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoLine3

GetShortestLineTo(GeoLine3, Tolerance)

Gets the shortest line from this loop's boundary to a segment in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3

The segment; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the segment does not lie in the loop's plane.

GetShortestLineTo(GeoArc3)

Gets the shortest line from this loop's boundary to an arc in the same plane.

public GeoLine3 GetShortestLineTo(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

GeoLine3

GetShortestLineTo(GeoArc3, Tolerance)

Gets the shortest line from this loop's boundary to an arc in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3

The arc; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the arc does not lie in the loop's plane.

GetShortestLineTo(GeoCircle3)

Gets the shortest line from this loop's boundary to a circle in the same plane.

public GeoLine3 GetShortestLineTo(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

GeoLine3

GetShortestLineTo(GeoCircle3, Tolerance)

Gets the shortest line from this loop's boundary to a circle in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the circle does not lie in the loop's plane.

GetShortestLineTo(GeoEdge3)

Gets the shortest line from this loop's boundary to an edge in the same plane.

public GeoLine3 GetShortestLineTo(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

GeoLine3

GetShortestLineTo(GeoEdge3, Tolerance)

Gets the shortest line from this loop's boundary to an edge in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3

The edge; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the edge does not lie in the loop's plane.

GetShortestLineTo(GeoPolyline3)

Gets the shortest line from this loop's boundary to a straight chain in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

GeoLine3

GetShortestLineTo(GeoPolyline3, Tolerance)

Gets the shortest line from this loop's boundary to a straight chain in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Remarks

The chain is laid out in the loop's plane vertex for vertex, a leg shorter than the global tolerance and all, as GetShortestLineTo(GeoPolygon3, Tolerance) lays out a polygon.

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentException

Thrown when the chain does not lie in the loop's plane.

GetShortestLineTo(GeoPolylineArc3)

Gets the shortest line from this loop's boundary to a curved chain in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

GeoLine3

GetShortestLineTo(GeoPolylineArc3, Tolerance)

Gets the shortest line from this loop's boundary to a curved chain in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The chain; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentException

Thrown when the chain does not lie in the loop's plane.

GetShortestLineTo(GeoPolygon3)

Gets the shortest line from this loop's boundary to a polygon in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

GeoLine3

GetShortestLineTo(GeoPolygon3, Tolerance)

Gets the shortest line from this loop's boundary to a polygon in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Remarks

The polygon is laid out in the loop's plane corner for corner, so a side shorter than the global tolerance, which it keeps when built within a finer one, is measured to: at a millionth, the square 10 by 10 at the origin is 0.5 from the polygon (10.5004, 5), (16, 2), (16, 8), (10.5, 5), where laid out within the global tolerance of a thousandth the polygon lost its corner (10.5, 5) and the line was 0.5004 long. So are a chain, a face and another curved loop.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

ArgumentException

Thrown when the polygon does not lie in the loop's plane.

GetShortestLineTo(GeoPolygonArc3)

Gets the shortest line from this loop's boundary to another curved loop in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 other)

Parameters

other GeoPolygonArc3

Returns

GeoLine3

GetShortestLineTo(GeoPolygonArc3, Tolerance)

Gets the shortest line from this loop's boundary to another curved loop in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 other, Tolerance tolerance)

Parameters

other GeoPolygonArc3

The other loop; it has to lie in this one's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Remarks

The other loop is laid out in this one's plane edge for edge, as this one is, a side shorter than the global tolerance and all, as GetShortestLineTo(GeoPolygon3, Tolerance) lays out a polygon.

Exceptions

ArgumentNullException

Thrown when the other loop is null.

ArgumentException

Thrown when the other loop lies in a different plane.

GetShortestLineTo(GeoFace3)

Gets the shortest line from this loop's boundary to a face in the same plane.

public GeoLine3 GetShortestLineTo(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoLine3

GetShortestLineTo(GeoFace3, Tolerance)

Gets the shortest line from this loop's boundary to a face in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3

The face; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Remarks

The face and its holes are laid out in the loop's plane corner for corner, a side shorter than the global tolerance and all, as GetShortestLineTo(GeoPolygon3, Tolerance) lays out a polygon.

Exceptions

ArgumentNullException

Thrown when the face is null.

ArgumentException

Thrown when the face does not lie in the loop's plane.

GetShortestLineTo(GeoSphere3)

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

GetShortestLineTo(GeoSpline3)

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

Exceptions

ArgumentNullException

Thrown when the spline is null.