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
pointGeoPoint3
Returns
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
pointGeoPoint3The point; it does not have to lie in the loop's plane.
toleranceToleranceThe 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
lineGeoLine3
Returns
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
Returns
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
arcGeoArc3
Returns
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
Returns
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
circleGeoCircle3
Returns
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
circleGeoCircle3The circle; it has to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
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
edgeGeoEdge3
Returns
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
Returns
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
polylineGeoPolyline3
Returns
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
polylineGeoPolyline3The chain; it has to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
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
chainGeoPolylineArc3
Returns
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
chainGeoPolylineArc3The chain; it has to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
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
polygonGeoPolygon3
Returns
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
polygonGeoPolygon3The polygon; it has to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
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
otherGeoPolygonArc3
Returns
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
otherGeoPolygonArc3The other loop; it has to lie in this one's plane.
toleranceToleranceThe tolerance.
Returns
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
faceGeoFace3
Returns
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
Returns
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
sphereGeoSphere3
Returns
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
sphereGeoSphere3toleranceTolerance
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
splineGeoSpline3
Returns
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
splineGeoSpline3toleranceTolerance
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.