Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPolygonArc3)
Gets the shortest line from this circle to the boundary of a curved loop in the same plane: GetShortestLineTo(GeoCircle3) turned round, so that it leaves this circle 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 circle does not lie in the loop's plane.
- InvalidOperationException
Thrown when this circle has a coordinate that is not a finite number.
GetShortestLineTo(GeoPolygonArc3, Tolerance)
Gets the shortest line from this circle to the boundary of a curved loop in the same plane, within a tolerance: GetShortestLineTo(GeoCircle3, Tolerance) turned round, so that it leaves this circle 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 circle does not lie in the loop's plane.
- InvalidOperationException
Thrown when this circle has a coordinate that is not a finite number.
GetShortestLineTo(GeoPoint3)
Gets the shortest segment joining this circle to a point, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
Remarks
The circle is read as the filled disc its distance reads, so the segment is as long as DistanceTo(GeoPoint3): from the circle of radius 50 about the origin on the XY plane, the point (0, 0, 30) gets the one straight down from the centre, 30 long, and the point (80, 0, 40) the one from (50, 0, 0), 50 long.
GetShortestLineTo(GeoPoint3, Tolerance)
Gets the shortest segment joining this circle to a point, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
The circle is read as the filled disc its distance reads, so the segment is as long as DistanceTo(GeoPoint3): from the circle of radius 50 about the origin on the XY plane, the point (0, 0, 30) gets the one straight down from the centre, 30 long, and the point (80, 0, 40) the one from (50, 0, 0), 50 long.
GetShortestLineTo(GeoSphere3)
Gets the shortest segment leaving this circle 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 circle and landing on a ball, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
- GeoLine3
The segment of GetShortestLineTo(GeoCircle3, Tolerance) turned round, so that it leaves this circle and lands on the surface of the ball.
GetShortestLineTo(GeoSpline3)
Gets the shortest segment leaving this circle 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 circle 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 circle and lands on the spline.
Exceptions
- ArgumentNullException
Thrown when the spline is null.