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.
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
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
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
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
Exceptions
- ArgumentNullException
Thrown when the face is null.
- ArgumentException
Thrown when the face does not lie in the loop's plane.