Method GetShortestLineTo
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPoint3)
Gets the shortest segment joining this plane to a point, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
Remarks
The perpendicular from the foot of the point, as long as DistanceTo(GeoPoint3): from the XY plane, the point (10, 20, 30) gets the one from (10, 20, 0), 30 long.
GetShortestLineTo(GeoPoint3, Tolerance)
Gets the shortest segment joining this plane to a point, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)
Parameters
Returns
Remarks
The perpendicular from the foot of the point, as long as DistanceTo(GeoPoint3): from the XY plane, the point (10, 20, 30) gets the one from (10, 20, 0), 30 long. The tolerance is taken so that this reads like every other shape; it changes nothing here.
GetShortestLineTo(GeoLine3)
Gets the shortest segment joining this plane to a segment: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the segment.
public GeoLine3 GetShortestLineTo(GeoLine3 line)
Parameters
lineGeoLine3
Returns
Remarks
A segment that crosses or touches this plane meets it in a segment of no length; one clear of it is joined to its nearer end, the start where both are as near. The XY plane is joined to the segment from (0, 0, 10) to (50, 0, 30) from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoLine3) measures it.
GetShortestLineTo(GeoLine3, Tolerance)
Gets the shortest segment joining this plane to a segment, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the segment.
public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
Remarks
A segment that crosses or touches this plane meets it in a segment of no length; one clear of it is joined to its nearer end, the start where both are as near. The XY plane is joined to the segment from (0, 0, 10) to (50, 0, 30) from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoLine3) measures it. The tolerance is taken so that this reads like every other shape; it changes nothing, since the distance reads a segment against a plane exactly.
GetShortestLineTo(GeoPolyline3)
Gets the shortest segment joining this plane to a polyline: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the polyline.
public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Remarks
A chain that crosses or touches this plane meets it in a segment of no length at its first point of contact; one clear of it is joined to its nearest vertex. The XY plane is joined to the chain (0, 0, 10), (50, 0, 30) from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoPolyline3) measures it. The segment is never snapped: a shape a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoPolyline3, Tolerance)
Gets the shortest segment joining this plane to a polyline, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the polyline.
public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Remarks
A chain that crosses or touches this plane meets it in a segment of no length at its first point of contact; one clear of it is joined to its nearest vertex. The XY plane is joined to the chain (0, 0, 10), (50, 0, 30) from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoPolyline3) measures it. The segment is never snapped: a shape a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetShortestLineTo(GeoSolid3)
Gets the shortest segment joining this plane to a solid: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the solid.
public GeoLine3 GetShortestLineTo(GeoSolid3 solid)
Parameters
solidGeoSolid3
Returns
Remarks
A body that crosses or touches this plane meets it in a segment of no length at its first point of contact; one clear of it is joined to its nearest corner. The plane 30 under the box 100 by 100 by 100 with a corner at the origin is joined to a corner of its bottom face, 30 long, as DistanceTo(GeoSolid3) measures it. The segment is never snapped: a shape a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetShortestLineTo(GeoSolid3, Tolerance)
Gets the shortest segment joining this plane to a solid, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the solid.
public GeoLine3 GetShortestLineTo(GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
Remarks
A body that crosses or touches this plane meets it in a segment of no length at its first point of contact; one clear of it is joined to its nearest corner. The plane 30 under the box 100 by 100 by 100 with a corner at the origin is joined to a corner of its bottom face, 30 long, as DistanceTo(GeoSolid3) measures it. The segment is never snapped: a shape a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetShortestLineTo(GeoFace3)
Gets the shortest segment joining this plane to a face: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the face.
public GeoLine3 GetShortestLineTo(GeoFace3 face)
Parameters
faceGeoFace3
Returns
Remarks
A face that crosses or touches this plane meets it in a segment of no length at the first point of contact along its outline; one clear of it is joined to its nearest corner. The floor plane is joined to the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = 10 to 110, from (0, 50, 0) up to its corner (0, 50, 10), 10 long, as DistanceTo(GeoFace3) measures it. The segment is never snapped: a face a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoFace3, Tolerance)
Gets the shortest segment joining this plane to a face, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the face.
public GeoLine3 GetShortestLineTo(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
A face that crosses or touches this plane meets it in a segment of no length at the first point of contact along its outline; one clear of it is joined to its nearest corner. The floor plane is joined to the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = 10 to 110, from (0, 50, 0) up to its corner (0, 50, 10), 10 long, as DistanceTo(GeoFace3) measures it. The segment is never snapped: a face a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetShortestLineTo(GeoPolygon3)
Gets the shortest segment joining this plane to a polygon: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the polygon.
public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
Remarks
A polygon that crosses or touches this plane meets it in a segment of no length at the first point of contact walking its edges in order; one clear of it is joined to its nearest corner. The floor plane meets a square 100 by 100 standing upright along y = 50 from z = -50 to 50 at (100, 50, 0), and is joined to one standing from z = 10 to 110 from (0, 50, 0) up to its corner (0, 50, 10), 10 long, as DistanceTo(GeoPolygon3) measures it. The segment is never snapped: a polygon a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoPolygon3, Tolerance)
Gets the shortest segment joining this plane to a polygon, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the polygon.
public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3toleranceTolerance
Returns
Remarks
A polygon that crosses or touches this plane meets it in a segment of no length at the first point of contact walking its edges in order; one clear of it is joined to its nearest corner. The floor plane meets a square 100 by 100 standing upright along y = 50 from z = -50 to 50 at (100, 50, 0), and is joined to one standing from z = 10 to 110 from (0, 50, 0) up to its corner (0, 50, 10), 10 long, as DistanceTo(GeoPolygon3) measures it. The segment is never snapped: a polygon a hair off the plane is joined by a segment that short, though the distance, read within the point tolerance, is nought.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetShortestLineTo(GeoRay3)
Gets the shortest segment joining this plane to a ray: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the ray.
public GeoLine3 GetShortestLineTo(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
Remarks
A ray running into this plane meets it in a segment of no length where it passes through; one running along it or away from it is joined to its origin. The floor plane meets the ray from (0, 0, 10) pointing straight down at the origin, and is joined to the same ray pointing straight up from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoRay3) measures it.
GetShortestLineTo(GeoRay3, Tolerance)
Gets the shortest segment joining this plane to a ray, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the ray.
public GeoLine3 GetShortestLineTo(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
Remarks
A ray running into this plane meets it in a segment of no length where it passes through; one running along it or away from it is joined to its origin. The floor plane meets the ray from (0, 0, 10) pointing straight down at the origin, and is joined to the same ray pointing straight up from the origin to (0, 0, 10), 10 long, as DistanceTo(GeoRay3) measures it.
GetShortestLineTo(GeoTriangle3)
Gets the shortest segment joining this plane to a triangle: GetShortestLineTo(GeoPlane3) turned round, so that it leaves this plane and lands on the triangle.
public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
Remarks
A triangle that crosses or touches this plane meets it in a segment of no length at the first point of contact walking its edges from A to B; one clear of it is joined to its nearest corner. The floor plane meets the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) at (50, 50, 0), and is joined to the triangle with corners (0, 50, 10), (100, 50, 10) and (0, 50, 110) from (0, 50, 0) up to (0, 50, 10), 10 long, as DistanceTo(GeoTriangle3) measures it.
GetShortestLineTo(GeoTriangle3, Tolerance)
Gets the shortest segment joining this plane to a triangle, within a tolerance: GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the triangle.
public GeoLine3 GetShortestLineTo(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3toleranceTolerance
Returns
Remarks
A triangle that crosses or touches this plane meets it in a segment of no length at the first point of contact walking its edges from A to B; one clear of it is joined to its nearest corner. The floor plane meets the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) at (50, 50, 0), and is joined to the triangle with corners (0, 50, 10), (100, 50, 10) and (0, 50, 110) from (0, 50, 0) up to (0, 50, 10), 10 long, as DistanceTo(GeoTriangle3) measures it.
GetShortestLineTo(GeoSphere3)
Gets the shortest segment leaving this plane 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 plane and landing on a ball, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
- GeoLine3
The segment of GetShortestLineTo(GeoPlane3, Tolerance) turned round, so that it leaves this plane and lands on the surface of the ball.
GetShortestLineTo(GeoSpline3)
Gets the shortest segment leaving this plane 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 plane 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 plane and lands on the spline.
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetShortestLineTo(GeoXLine3)
Gets the shortest segment leaving this plane and landing on an infinite line, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
GetShortestLineTo(GeoXLine3, Tolerance)
Gets the shortest segment leaving this plane and landing on an infinite line, within a tolerance.
public GeoLine3 GetShortestLineTo(GeoXLine3 xline, Tolerance tolerance)