Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPoint3)
Gets the shortest segment leaving this spline and landing on a point, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
- GeoLine3
The segment from the spline's nearest point to the point; as long as DistanceTo(GeoPoint3), to rounding.
GetShortestLineTo(GeoPoint3, Tolerance)
Gets the shortest segment leaving this spline and landing on a point, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)
Parameters
pointGeoPoint3The point.
toleranceToleranceThe tolerance; not read, since the nearest point takes none.
Returns
GetShortestLineTo(GeoLine3)
Gets the shortest segment leaving this spline and landing on a line segment, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoLine3 line)
Parameters
lineGeoLine3
Returns
- GeoLine3
The segment from the spline to a line segment; see GetShortestLineTo(GeoLine3, Tolerance).
GetShortestLineTo(GeoLine3, Tolerance)
Gets the shortest segment leaving this spline and landing on a line segment, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)
Parameters
lineGeoLine3The line segment.
toleranceToleranceThe tolerance: a line segment no longer than its point tolerance is read as its start where it does not truly meet the spline.
Returns
- GeoLine3
The segment from the point of the spline to the point of the line segment nearest it, as long as DistanceTo(GeoLine3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoRay3)
Gets the shortest segment leaving this spline and landing on a ray, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
- GeoLine3
The segment from the spline to a ray; see GetShortestLineTo(GeoRay3, Tolerance).
GetShortestLineTo(GeoRay3, Tolerance)
Gets the shortest segment leaving this spline and landing on a ray, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoRay3 ray, Tolerance tolerance)
Parameters
rayGeoRay3The ray.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the ray nearest it, as long as DistanceTo(GeoRay3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoXLine3)
Gets the shortest segment leaving this spline and landing on an infinite line, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
- GeoLine3
The segment from the spline to an infinite line; see GetShortestLineTo(GeoXLine3, Tolerance).
GetShortestLineTo(GeoXLine3, Tolerance)
Gets the shortest segment leaving this spline and landing on an infinite line, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoXLine3 xline, Tolerance tolerance)
Parameters
xlineGeoXLine3The infinite line.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the infinite line nearest it, as long as DistanceTo(GeoXLine3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoPlane3)
Gets the shortest segment leaving this spline and landing on a plane, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPlane3 plane)
Parameters
planeGeoPlane3
Returns
- GeoLine3
The segment from the spline to a plane; see GetShortestLineTo(GeoPlane3, Tolerance).
GetShortestLineTo(GeoPlane3, Tolerance)
Gets the shortest segment leaving this spline and landing on a plane, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPlane3 plane, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the plane nearest it, as long as DistanceTo(GeoPlane3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoPolyline3)
Gets the shortest segment leaving this spline and landing on a polyline, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
- GeoLine3
The segment from the spline to a polyline; see GetShortestLineTo(GeoPolyline3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoPolyline3, Tolerance)
Gets the shortest segment leaving this spline and landing on a polyline, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3The polyline.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the polyline nearest it, as long as DistanceTo(GeoPolyline3, Tolerance); of no length where the two cross.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoPolygon3)
Gets the shortest segment leaving this spline and landing on a polygon, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
- GeoLine3
The segment from the spline to a polygon; see GetShortestLineTo(GeoPolygon3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoPolygon3, Tolerance)
Gets the shortest segment leaving this spline and landing on a polygon, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the polygon nearest it, as long as DistanceTo(GeoPolygon3, Tolerance); of no length where the spline pierces it or lies in it.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoTriangle3)
Gets the shortest segment leaving this spline and landing on a triangle, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
- GeoLine3
The segment from the spline to a triangle; see GetShortestLineTo(GeoTriangle3, Tolerance).
GetShortestLineTo(GeoTriangle3, Tolerance)
Gets the shortest segment leaving this spline and landing on a triangle, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the triangle nearest it, as long as DistanceTo(GeoTriangle3, Tolerance); of no length where the spline pierces it or lies in it.
GetShortestLineTo(GeoFace3)
Gets the shortest segment leaving this spline and landing on a face, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoFace3 face)
Parameters
faceGeoFace3
Returns
- GeoLine3
The segment from the spline to a face; see GetShortestLineTo(GeoFace3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoFace3, Tolerance)
Gets the shortest segment leaving this spline and landing on a face, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoFace3 face, Tolerance tolerance)
Parameters
faceGeoFace3The face.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the face nearest it, as long as DistanceTo(GeoFace3, Tolerance); of no length where the spline pierces it or lies in it.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoAabb3)
Gets the shortest segment leaving this spline and landing on an axis-aligned box, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
- GeoLine3
The segment from the spline to an axis-aligned box; see GetShortestLineTo(GeoAabb3, Tolerance).
GetShortestLineTo(GeoAabb3, Tolerance)
Gets the shortest segment leaving this spline and landing on an axis-aligned box, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoAabb3 box, Tolerance tolerance)
Parameters
boxGeoAabb3The box.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoAabb3, Tolerance) but where the box holds the spline, which it reads as the gap out to the skin; of no length where the two cross.
GetShortestLineTo(GeoObb3)
Gets the shortest segment leaving this spline and landing on an oriented box, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoObb3 box)
Parameters
boxGeoObb3
Returns
- GeoLine3
The segment from the spline to an oriented box; see GetShortestLineTo(GeoObb3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the box is null.
GetShortestLineTo(GeoObb3, Tolerance)
Gets the shortest segment leaving this spline and landing on an oriented box, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoObb3 box, Tolerance tolerance)
Parameters
boxGeoObb3The box.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoObb3, Tolerance) but where the box holds the spline, which it reads as the gap out to the skin; of no length where the two cross.
Exceptions
- ArgumentNullException
Thrown when the box is null.
GetShortestLineTo(GeoSolid3)
Gets the shortest segment leaving this spline and landing on a solid, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoSolid3 solid)
Parameters
solidGeoSolid3
Returns
- GeoLine3
The segment from the spline to a solid; see GetShortestLineTo(GeoSolid3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetShortestLineTo(GeoSolid3, Tolerance)
Gets the shortest segment leaving this spline and landing on a solid, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSolid3 solid, Tolerance tolerance)
Parameters
solidGeoSolid3The solid.
toleranceToleranceThe tolerance; read only to cut the solid's openings in, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoSolid3, Tolerance) but where the solid holds the spline, which it reads as the gap out to the skin; of no length where the two cross.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetShortestLineTo(GeoSphere3)
Gets the shortest segment leaving this spline and landing on a ball, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
- GeoLine3
The segment from the spline to a ball; see GetShortestLineTo(GeoSphere3, Tolerance).
GetShortestLineTo(GeoSphere3, Tolerance)
Gets the shortest segment leaving this spline and landing on a ball, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3The ball.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the skin nearest it, as long as DistanceTo(GeoSphere3, Tolerance) but where the ball holds the spline, which it reads as the gap out to the skin; of no length where the two cross.
GetShortestLineTo(GeoArc3)
Gets the shortest segment leaving this spline and landing on an arc, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
- GeoLine3
The segment from the spline to an arc; see GetShortestLineTo(GeoArc3, Tolerance).
GetShortestLineTo(GeoArc3, Tolerance)
Gets the shortest segment leaving this spline and landing on an arc, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoArc3 arc, Tolerance tolerance)
Parameters
arcGeoArc3The arc.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the arc nearest it, as long as DistanceTo(GeoArc3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoCircle3)
Gets the shortest segment leaving this spline and landing on a circle, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
- GeoLine3
The segment from the spline to a circle; see GetShortestLineTo(GeoCircle3, Tolerance).
GetShortestLineTo(GeoCircle3, Tolerance)
Gets the shortest segment leaving this spline and landing on a circle, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3The circle.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the circle nearest it, as long as DistanceTo(GeoCircle3, Tolerance); of no length where the spline pierces it or lies in it.
GetShortestLineTo(GeoEllipse3)
Gets the shortest segment leaving this spline and landing on an ellipse, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse)
Parameters
ellipseGeoEllipse3
Returns
- GeoLine3
The segment from the spline to an ellipse; see GetShortestLineTo(GeoEllipse3, Tolerance).
GetShortestLineTo(GeoEllipse3, Tolerance)
Gets the shortest segment leaving this spline and landing on an ellipse, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoEllipse3 ellipse, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the ellipse nearest it, as long as DistanceTo(GeoEllipse3, Tolerance); of no length where the spline pierces it or lies in it.
GetShortestLineTo(GeoEdge3)
Gets the shortest segment leaving this spline and landing on an edge, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
- GeoLine3
The segment from the spline to an edge; see GetShortestLineTo(GeoEdge3, Tolerance).
GetShortestLineTo(GeoEdge3, Tolerance)
Gets the shortest segment leaving this spline and landing on an edge, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoEdge3 edge, Tolerance tolerance)
Parameters
edgeGeoEdge3The edge.
toleranceToleranceThe tolerance: a straight edge no longer than its point tolerance is read as its start where it does not truly meet the spline.
Returns
- GeoLine3
The segment from the point of the spline to the point of the edge nearest it, as long as DistanceTo(GeoEdge3, Tolerance); of no length where the two cross.
GetShortestLineTo(GeoPolylineArc3)
Gets the shortest segment leaving this spline and landing on a curved chain, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3
Returns
- GeoLine3
The segment from the spline to a curved chain; see GetShortestLineTo(GeoPolylineArc3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetShortestLineTo(GeoPolylineArc3, Tolerance)
Gets the shortest segment leaving this spline and landing on a curved chain, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3The curved chain.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the curved chain nearest it, as long as DistanceTo(GeoPolylineArc3, Tolerance); of no length where the two cross.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetShortestLineTo(GeoPolygonArc3)
Gets the shortest segment leaving this spline and landing on a curved loop, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
- GeoLine3
The segment from the spline to a curved loop; see GetShortestLineTo(GeoPolygonArc3, Tolerance).
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetShortestLineTo(GeoPolygonArc3, Tolerance)
Gets the shortest segment leaving this spline and landing on a curved loop, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of the spline to the point of the curved loop nearest it, as long as DistanceTo(GeoPolygonArc3, Tolerance); of no length where the two cross.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetShortestLineTo(GeoSpline3)
Gets the shortest segment leaving this spline and landing on another, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoSpline3 other)
Parameters
otherGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the other spline is null.
GetShortestLineTo(GeoSpline3, Tolerance)
Gets the shortest segment leaving this spline and landing on another, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSpline3 other, Tolerance tolerance)
Parameters
otherGeoSpline3The other spline.
toleranceToleranceThe tolerance; not read, since the nearest points take none.
Returns
- GeoLine3
The segment from the point of this spline to the point of the other nearest it, as long as DistanceTo(GeoSpline3, Tolerance); of no length where the two cross. The other spline gives the same segment turned round.
Exceptions
- ArgumentNullException
Thrown when the other spline is null.