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
pointGeoPoint2
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
pointGeoPoint2The point.
toleranceToleranceThe tolerance; not read, since the nearest point takes none.
Returns
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
lineGeoLine2
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
lineGeoLine2The line segment.
toleranceToleranceThe 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
rayGeoRay2
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
rayGeoRay2The ray.
toleranceToleranceThe 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
xlineGeoXLine2
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
xlineGeoXLine2The infinite line.
toleranceToleranceThe 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
polylineGeoPolyline2
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
polylineGeoPolyline2The polyline.
toleranceToleranceThe 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
polygonGeoPolygon2
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
polygonGeoPolygon2The polygon.
toleranceToleranceThe 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
rectGeoRectangle2
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
rectGeoRectangle2The rectangle.
toleranceToleranceThe 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
triangleGeoTriangle2
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
triangleGeoTriangle2The triangle.
toleranceToleranceThe 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
faceGeoFace2
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
faceGeoFace2The face.
toleranceToleranceThe 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
arcGeoArc2
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
arcGeoArc2The arc.
toleranceToleranceThe 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
circleGeoCircle2
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
circleGeoCircle2The circle.
toleranceToleranceThe 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
ellipseGeoEllipse2
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
ellipseGeoEllipse2The ellipse.
toleranceToleranceThe 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
edgeGeoEdge2
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
edgeGeoEdge2The edge.
toleranceToleranceThe 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
chainGeoPolylineArc2
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
chainGeoPolylineArc2The curved chain.
toleranceToleranceThe 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
loopGeoPolygonArc2
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
loopGeoPolygonArc2The curved loop.
toleranceToleranceThe 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
otherGeoSpline2
Returns
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
otherGeoSpline2The other spline.
toleranceToleranceThe 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.