Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPoint3)

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

public GeoLine3 GetShortestLineTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

GeoLine3

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

GetShortestLineTo(GeoPoint3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3

The point.

tolerance Tolerance

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

Returns

GeoLine3

GetShortestLineTo(GeoLine3)

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

public GeoLine3 GetShortestLineTo(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoLine3

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

GetShortestLineTo(GeoLine3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3

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

GeoLine3

The segment from the point of the spline to the point of the line segment nearest it, as long as DistanceTo(GeoLine3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoRay3)

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

public GeoLine3 GetShortestLineTo(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

GeoLine3

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

GetShortestLineTo(GeoRay3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoRay3 ray, Tolerance tolerance)

Parameters

ray GeoRay3

The ray.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the ray nearest it, as long as DistanceTo(GeoRay3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoXLine3)

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

public GeoLine3 GetShortestLineTo(GeoXLine3 xline)

Parameters

xline GeoXLine3

Returns

GeoLine3

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

GetShortestLineTo(GeoXLine3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoXLine3 xline, Tolerance tolerance)

Parameters

xline GeoXLine3

The infinite line.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the infinite line nearest it, as long as DistanceTo(GeoXLine3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoPlane3)

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

public GeoLine3 GetShortestLineTo(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

GeoLine3

The segment from the spline to a plane; see GetShortestLineTo(GeoPlane3, Tolerance).

GetShortestLineTo(GeoPlane3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPlane3 plane, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the plane nearest it, as long as DistanceTo(GeoPlane3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoPolyline3)

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

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

GeoLine3

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

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolyline3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The polyline.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the polyline nearest it, as long as DistanceTo(GeoPolyline3, Tolerance); of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetShortestLineTo(GeoPolygon3)

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

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

GeoLine3

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

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoPolygon3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the polygon nearest it, as long as DistanceTo(GeoPolygon3, Tolerance); of no length where the spline pierces it or lies in it.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetShortestLineTo(GeoTriangle3)

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

public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

GeoLine3

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

GetShortestLineTo(GeoTriangle3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the triangle nearest it, as long as DistanceTo(GeoTriangle3, Tolerance); of no length where the spline pierces it or lies in it.

GetShortestLineTo(GeoFace3)

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

public GeoLine3 GetShortestLineTo(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoLine3

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

Exceptions

ArgumentNullException

Thrown when the face is null.

GetShortestLineTo(GeoFace3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3

The face.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the face nearest it, as long as DistanceTo(GeoFace3, Tolerance); of no length where the spline pierces it or lies in it.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetShortestLineTo(GeoAabb3)

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

public GeoLine3 GetShortestLineTo(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

GeoLine3

The segment from the spline to an axis-aligned box; see GetShortestLineTo(GeoAabb3, Tolerance).

GetShortestLineTo(GeoAabb3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoAabb3 box, Tolerance tolerance)

Parameters

box GeoAabb3

The box.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoAabb3, Tolerance) but where the box holds the spline, which it reads as the gap out to the skin; of no length where the two cross.

GetShortestLineTo(GeoObb3)

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

public GeoLine3 GetShortestLineTo(GeoObb3 box)

Parameters

box GeoObb3

Returns

GeoLine3

The segment from the spline to an oriented box; see GetShortestLineTo(GeoObb3, Tolerance).

Exceptions

ArgumentNullException

Thrown when the box is null.

GetShortestLineTo(GeoObb3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoObb3 box, Tolerance tolerance)

Parameters

box GeoObb3

The box.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoObb3, Tolerance) but where the box holds the spline, which it reads as the gap out to the skin; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the box is null.

GetShortestLineTo(GeoSolid3)

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

public GeoLine3 GetShortestLineTo(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

GeoLine3

The segment from the spline to a solid; see GetShortestLineTo(GeoSolid3, Tolerance).

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetShortestLineTo(GeoSolid3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance; read only to cut the solid's openings in, since the nearest points take none.

Returns

GeoLine3

The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoSolid3, Tolerance) but where the solid holds the spline, which it reads as the gap out to the skin; of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetShortestLineTo(GeoSphere3)

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

public GeoLine3 GetShortestLineTo(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

GeoLine3

The segment from the spline to a ball; see GetShortestLineTo(GeoSphere3, Tolerance).

GetShortestLineTo(GeoSphere3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3

The ball.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoSphere3, Tolerance) but where the ball holds the spline, which it reads as the gap out to the skin; of no length where the two cross.

GetShortestLineTo(GeoArc3)

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

public GeoLine3 GetShortestLineTo(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

GeoLine3

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

GetShortestLineTo(GeoArc3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the arc nearest it, as long as DistanceTo(GeoArc3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoCircle3)

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

public GeoLine3 GetShortestLineTo(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

GeoLine3

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

GetShortestLineTo(GeoCircle3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the circle nearest it, as long as DistanceTo(GeoCircle3, Tolerance); of no length where the spline pierces it or lies in it.

GetShortestLineTo(GeoEllipse3)

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

public GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse)

Parameters

ellipse GeoEllipse3

Returns

GeoLine3

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

GetShortestLineTo(GeoEllipse3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the ellipse nearest it, as long as DistanceTo(GeoEllipse3, Tolerance); of no length where the spline pierces it or lies in it.

GetShortestLineTo(GeoEdge3)

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

public GeoLine3 GetShortestLineTo(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

GeoLine3

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

GetShortestLineTo(GeoEdge3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3

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

GeoLine3

The segment from the point of the spline to the point of the edge nearest it, as long as DistanceTo(GeoEdge3, Tolerance); of no length where the two cross.

GetShortestLineTo(GeoPolylineArc3)

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

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

GeoLine3

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

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoPolylineArc3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The curved chain.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the curved chain nearest it, as long as DistanceTo(GeoPolylineArc3, Tolerance); of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetShortestLineTo(GeoPolygonArc3)

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

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop)

Parameters

loop GeoPolygonArc3

Returns

GeoLine3

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

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoPolygonArc3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc3

The curved loop.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of the spline to the point of the curved loop nearest it, as long as DistanceTo(GeoPolygonArc3, Tolerance); of no length where the two cross.

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetShortestLineTo(GeoSpline3)

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

public GeoLine3 GetShortestLineTo(GeoSpline3 other)

Parameters

other GeoSpline3

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the other spline is null.

GetShortestLineTo(GeoSpline3, Tolerance)

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

public GeoLine3 GetShortestLineTo(GeoSpline3 other, Tolerance tolerance)

Parameters

other GeoSpline3

The other spline.

tolerance Tolerance

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

Returns

GeoLine3

The segment from the point of this spline to the point of the other nearest it, as long as DistanceTo(GeoSpline3, 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.