Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPoint2)
Gets the shortest segment leaving this ray and landing on a point, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoPoint2 point)
Parameters
pointGeoPoint2
Returns
Remarks
It starts where GetClosestPointOnBoundary(GeoPoint2) lands and is exactly as long as DistanceTo(GeoPoint2): from the ray leaving the origin along X to the point (-30, 40), it runs from the origin and is 50 long.
GetShortestLineTo(GeoPoint2, Tolerance)
Gets the shortest segment leaving this ray and landing on a point, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPoint2 point, Tolerance tolerance)
Parameters
Returns
GetShortestLineTo(GeoLine2)
Gets the shortest segment leaving this ray and landing on a line segment, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoLine2 line)
Parameters
lineGeoLine2
Returns
GetShortestLineTo(GeoLine2, Tolerance)
Gets the shortest segment leaving this ray and landing on a line segment, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoLine2 line, Tolerance tolerance)
Parameters
Returns
- GeoLine2
A segment leaving this ray and landing on
line, of no length at all where the two cross.
GetShortestLineTo(GeoRay2)
Gets the shortest segment leaving this ray and landing on another ray, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoRay2 other)
Parameters
otherGeoRay2
Returns
GetShortestLineTo(GeoRay2, Tolerance)
Gets the shortest segment leaving this ray and landing on another ray, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoRay2 other, Tolerance tolerance)
Parameters
Returns
Remarks
Where the two cross it is the point where they do; otherwise one of its ends is an origin. The ray from the origin along X gets the segment from (50, 0) to (50, 30) to the ray from (50, 30) along Y.
GetShortestLineTo(GeoCircle2)
Gets the shortest segment leaving this ray and landing on the circumference of a circle, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
GetShortestLineTo(GeoCircle2, Tolerance)
Gets the shortest segment leaving this ray and landing on the circumference of a circle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
GetShortestLineTo(GeoRectangle2)
Gets the shortest segment leaving this ray and landing on the boundary of a rectangle, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
GetShortestLineTo(GeoRectangle2, Tolerance)
Gets the shortest segment leaving this ray and landing on the boundary of a rectangle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
GetShortestLineTo(GeoPolyline2)
Gets the shortest segment leaving this ray and landing on a polyline, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoPolyline2, Tolerance)
Gets the shortest segment leaving this ray and landing on a polyline, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolyline2 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoPolygon2)
Gets the shortest segment leaving this ray and landing on the boundary of a polygon, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoPolygon2 poly)
Parameters
polyGeoPolygon2
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoPolygon2, Tolerance)
Gets the shortest segment leaving this ray and landing on the boundary of a polygon, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolygon2 poly, Tolerance tolerance)
Parameters
polyGeoPolygon2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoArc2)
Gets the shortest segment joining this ray to an arc.
public GeoLine2 GetShortestLineTo(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
GetShortestLineTo(GeoArc2, Tolerance)
Gets the shortest segment joining this ray to an arc, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
GetShortestLineTo(GeoPolygonArc2)
Gets the shortest segment joining this ray to a curved loop.
public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetShortestLineTo(GeoPolygonArc2, Tolerance)
Gets the shortest segment joining this ray to a curved loop, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetShortestLineTo(GeoPolylineArc2)
Gets the shortest segment joining this ray to a curved chain.
public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetShortestLineTo(GeoPolylineArc2, Tolerance)
Gets the shortest segment joining this ray to a curved chain, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetShortestLineTo(GeoFace2)
Gets the shortest segment leaving this ray and landing on the boundary of a face, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoFace2 face)
Parameters
faceGeoFace2
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoFace2, Tolerance)
Gets the shortest segment leaving this ray and landing on the boundary of a face, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoFace2 face, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoEdge2)
Gets the shortest segment leaving this ray and landing on an edge.
public GeoLine2 GetShortestLineTo(GeoEdge2 edge)
Parameters
edgeGeoEdge2
Returns
GetShortestLineTo(GeoEdge2, Tolerance)
Gets the shortest segment leaving this ray and landing on an edge, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoEdge2 edge, Tolerance tolerance)
Parameters
Returns
GetShortestLineTo(GeoTriangle2)
Gets the shortest segment leaving this ray and landing on a triangle, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
GetShortestLineTo(GeoTriangle2, Tolerance)
Gets the shortest segment leaving this ray and landing on a triangle, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance
Returns
GetShortestLineTo(GeoXLine2)
Gets the shortest segment leaving this ray and landing on an infinite line, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoXLine2 xline)
Parameters
xlineGeoXLine2
Returns
GetShortestLineTo(GeoXLine2, Tolerance)
Gets the shortest segment leaving this ray and landing on an infinite line, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoXLine2 xline, Tolerance tolerance)
Parameters
Returns
GetShortestLineTo(GeoSpline2)
Gets the shortest segment leaving this ray and landing on a spline, using the default tolerance.
public GeoLine2 GetShortestLineTo(GeoSpline2 spline)
Parameters
splineGeoSpline2
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetShortestLineTo(GeoSpline2, Tolerance)
Gets the shortest segment leaving this ray and landing on a spline, within a tolerance.
public GeoLine2 GetShortestLineTo(GeoSpline2 spline, Tolerance tolerance)
Parameters
splineGeoSpline2toleranceTolerance
Returns
- GeoLine2
The segment the spline gives, turned round: it starts on this ray and lands on the spline.
Exceptions
- ArgumentNullException
Thrown when the spline is null.