Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPolygonArc3)
Gets the shortest line from this edge to the boundary of a curved loop in the same plane: GetShortestLineTo(GeoEdge3) turned round, so that it leaves this edge and lands on the loop.
public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
- ArgumentException
Thrown when this edge does not lie in the loop's plane.
GetShortestLineTo(GeoPolygonArc3, Tolerance)
Gets the shortest line from this edge to the boundary of a curved loop in the same plane, within a tolerance: GetShortestLineTo(GeoEdge3, Tolerance) turned round, so that it leaves this edge and lands on the loop.
public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
- ArgumentException
Thrown when this edge does not lie in the loop's plane.
GetShortestLineTo(GeoPoint3)
Gets the shortest segment joining this edge to a point, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
Remarks
The segment leaves the point GetClosestPointOnBoundary(GeoPoint3, Tolerance) gives, on the leg or the bend, so for a point away from the centre of a bend it is as long as DistanceTo(GeoPoint3, Tolerance): from the straight edge joining (0, 0, 0) and (100, 0, 0), the point (50, 30, 40) gets the one from (50, 0, 0), 50 long. Near the centre it can be longer, as GetShortestLineTo(GeoPoint3, Tolerance) says.
GetShortestLineTo(GeoPoint3, Tolerance)
Gets the shortest segment joining this edge to a point, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
The segment leaves the point GetClosestPointOnBoundary(GeoPoint3, Tolerance) gives, on the leg or the bend, so for a point away from the centre of a bend it is as long as DistanceTo(GeoPoint3, Tolerance): from the straight edge joining (0, 0, 0) and (100, 0, 0), the point (50, 30, 40) gets the one from (50, 0, 0), 50 long.
A point whose foot in the plane of a bend falls within the tolerance of the centre of its arc is read as at the centre, which has no direction, and is carried to the bend's start; the distance to the point is the exact one, so the line can be longer than it, by at most twice the foot's offset from the centre. At a tolerance of a thousandth, the point (0, -0.0009, 0) and the edge from (-50, 0, 0) to (50, 0, 0) bulging by 1 about Z, through (0, -50, 0): the line runs from (-50, 0, 0), 50.00000001 long, where the distance is 49.9991.
GetShortestLineTo(GeoSphere3)
Gets the shortest segment leaving this edge 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 edge and landing on a ball, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
- GeoLine3
The segment of GetShortestLineTo(GeoEdge3, Tolerance) turned round, so that it leaves this edge and lands on the surface of the ball.
GetShortestLineTo(GeoSpline3)
Gets the shortest segment leaving this edge 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 edge 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 edge and lands on the spline.
Exceptions
- ArgumentNullException
Thrown when the spline is null.