Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPoint2)

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

public GeoLine2 GetShortestLineTo(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

GeoLine2

The segment from the spline's nearest point to the point; as long as DistanceTo(GeoPoint2), to rounding.

GetShortestLineTo(GeoPoint2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoPoint2 point, Tolerance tolerance)

Parameters

point GeoPoint2

The point.

tolerance Tolerance

The tolerance; not read, since the nearest point takes none.

Returns

GeoLine2

GetShortestLineTo(GeoLine2)

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

public GeoLine2 GetShortestLineTo(GeoLine2 line)

Parameters

line GeoLine2

Returns

GeoLine2

The segment from the spline to a line segment; see GetShortestLineTo(GeoLine2, Tolerance).

GetShortestLineTo(GeoLine2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoLine2 line, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

tolerance Tolerance

The tolerance: a line segment no longer than its point tolerance is read as its start where it does not truly meet the spline.

Returns

GeoLine2

The segment from the point of the spline to the point of line segment nearest it, as long as DistanceTo(GeoLine2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoRay2)

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

public GeoLine2 GetShortestLineTo(GeoRay2 ray)

Parameters

ray GeoRay2

Returns

GeoLine2

The segment from the spline to a ray; see GetShortestLineTo(GeoRay2, Tolerance).

GetShortestLineTo(GeoRay2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoRay2 ray, Tolerance tolerance)

Parameters

ray GeoRay2

The ray.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of ray nearest it, as long as DistanceTo(GeoRay2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoXLine2)

Gets the shortest segment leaving this spline and landing on an infinite line, using the default tolerance.

public GeoLine2 GetShortestLineTo(GeoXLine2 xline)

Parameters

xline GeoXLine2

Returns

GeoLine2

The segment from the spline to an infinite line; see GetShortestLineTo(GeoXLine2, Tolerance).

GetShortestLineTo(GeoXLine2, Tolerance)

Gets the shortest segment leaving this spline and landing on an infinite line, within a tolerance.

public GeoLine2 GetShortestLineTo(GeoXLine2 xline, Tolerance tolerance)

Parameters

xline GeoXLine2

The infinite line.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of infinite line nearest it, as long as DistanceTo(GeoXLine2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoPolyline2)

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

public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

GeoLine2

The segment from the spline to a polyline; see GetShortestLineTo(GeoPolyline2, Tolerance).

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolyline2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline2

The polyline.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of polyline nearest it, as long as DistanceTo(GeoPolyline2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolygon2)

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

public GeoLine2 GetShortestLineTo(GeoPolygon2 polygon)

Parameters

polygon GeoPolygon2

Returns

GeoLine2

The segment from the spline to a polygon; see GetShortestLineTo(GeoPolygon2, Tolerance).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygon2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoPolygon2 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon2

The polygon.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of polygon nearest it, as long as DistanceTo(GeoPolygon2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoRectangle2)

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

public GeoLine2 GetShortestLineTo(GeoRectangle2 rect)

Parameters

rect GeoRectangle2

Returns

GeoLine2

The segment from the spline to a rectangle; see GetShortestLineTo(GeoRectangle2, Tolerance).

GetShortestLineTo(GeoRectangle2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoRectangle2 rect, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of rectangle nearest it, as long as DistanceTo(GeoRectangle2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoTriangle2)

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

public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle)

Parameters

triangle GeoTriangle2

Returns

GeoLine2

The segment from the spline to a triangle; see GetShortestLineTo(GeoTriangle2, Tolerance).

GetShortestLineTo(GeoTriangle2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle2

The triangle.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of triangle nearest it, as long as DistanceTo(GeoTriangle2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoFace2)

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

public GeoLine2 GetShortestLineTo(GeoFace2 face)

Parameters

face GeoFace2

Returns

GeoLine2

The segment from the spline to a face; see GetShortestLineTo(GeoFace2, Tolerance).

Exceptions

ArgumentNullException

Thrown when the face is null.

GetShortestLineTo(GeoFace2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoFace2 face, Tolerance tolerance)

Parameters

face GeoFace2

The face.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of face nearest it, as long as DistanceTo(GeoFace2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetShortestLineTo(GeoArc2)

Gets the shortest segment leaving this spline and landing on an arc, using the default tolerance.

public GeoLine2 GetShortestLineTo(GeoArc2 arc)

Parameters

arc GeoArc2

Returns

GeoLine2

The segment from the spline to an arc; see GetShortestLineTo(GeoArc2, Tolerance).

GetShortestLineTo(GeoArc2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoArc2 arc, Tolerance tolerance)

Parameters

arc GeoArc2

The arc.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of arc nearest it, as long as DistanceTo(GeoArc2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoCircle2)

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

public GeoLine2 GetShortestLineTo(GeoCircle2 circle)

Parameters

circle GeoCircle2

Returns

GeoLine2

The segment from the spline to a circle; see GetShortestLineTo(GeoCircle2, Tolerance).

GetShortestLineTo(GeoCircle2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoCircle2 circle, Tolerance tolerance)

Parameters

circle GeoCircle2

The circle.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of circle nearest it, as long as DistanceTo(GeoCircle2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoEllipse2)

Gets the shortest segment leaving this spline and landing on an ellipse, using the default tolerance.

public GeoLine2 GetShortestLineTo(GeoEllipse2 ellipse)

Parameters

ellipse GeoEllipse2

Returns

GeoLine2

The segment from the spline to an ellipse; see GetShortestLineTo(GeoEllipse2, Tolerance).

GetShortestLineTo(GeoEllipse2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoEllipse2 ellipse, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of ellipse nearest it, as long as DistanceTo(GeoEllipse2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoEdge2)

Gets the shortest segment leaving this spline and landing on an edge, using the default tolerance.

public GeoLine2 GetShortestLineTo(GeoEdge2 edge)

Parameters

edge GeoEdge2

Returns

GeoLine2

The segment from the spline to an edge; see GetShortestLineTo(GeoEdge2, Tolerance).

GetShortestLineTo(GeoEdge2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoEdge2 edge, Tolerance tolerance)

Parameters

edge GeoEdge2

The edge.

tolerance Tolerance

The tolerance: a straight edge no longer than its point tolerance is read as its start where it does not truly meet the spline.

Returns

GeoLine2

The segment from the point of the spline to the point of edge nearest it, as long as DistanceTo(GeoEdge2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

GetShortestLineTo(GeoPolylineArc2)

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

public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain)

Parameters

chain GeoPolylineArc2

Returns

GeoLine2

The segment from the spline to a curved chain; see GetShortestLineTo(GeoPolylineArc2, Tolerance).

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

GetShortestLineTo(GeoPolylineArc2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc2

The curved chain.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of curved chain nearest it, as long as DistanceTo(GeoPolylineArc2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

GetShortestLineTo(GeoPolygonArc2)

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

public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop)

Parameters

loop GeoPolygonArc2

Returns

GeoLine2

The segment from the spline to a curved loop; see GetShortestLineTo(GeoPolygonArc2, Tolerance).

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

GetShortestLineTo(GeoPolygonArc2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc2

The curved loop.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of the spline to the point of curved loop nearest it, as long as DistanceTo(GeoPolygonArc2, Tolerance) but where a closed shape holds the spline, which it reads as the gap out to the boundary; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

GetShortestLineTo(GeoSpline2)

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

public GeoLine2 GetShortestLineTo(GeoSpline2 other)

Parameters

other GeoSpline2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the other spline is null.

GetShortestLineTo(GeoSpline2, Tolerance)

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

public GeoLine2 GetShortestLineTo(GeoSpline2 other, Tolerance tolerance)

Parameters

other GeoSpline2

The other spline.

tolerance Tolerance

The tolerance; not read, since the nearest points take none.

Returns

GeoLine2

The segment from the point of this spline to the point of the other nearest it, as long as DistanceTo(GeoSpline2, Tolerance); of no length where the two cross. The other spline gives the same segment turned round.

Exceptions

ArgumentNullException

Thrown when the other spline is null.