Method GetIntersections
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetIntersections(GeoEllipse3, GeoPlane3)
Gets every point where the rim of an ellipse in space crosses a plane, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPlane3 plane)
Parameters
ellipseGeoEllipse3planeGeoPlane3
Returns
GetIntersections(GeoEllipse3, GeoPlane3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a plane, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPlane3 plane, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
planeGeoPlane3The plane.
toleranceToleranceThe tolerance: a rim standing off the plane by no more than its planar tolerance lies in it.
Returns
- GeoPoint3[]
At most two points, in order along the line the two planes share. The ellipse 300 by 100 lying in the plan about the origin, its major axis along X, crosses the plane x = 150 at (150, -86.603, 0), then at (150, 86.603, 0). An ellipse lying in the plane crosses it nowhere and gives none, which CollidesWith(GeoEllipse3, GeoPlane3, Tolerance) reports instead.
GetIntersections(GeoEllipse3, GeoLine3)
Gets every point where the rim of an ellipse in space crosses a segment, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoLine3 line)
Parameters
ellipseGeoEllipse3lineGeoLine3
Returns
GetIntersections(GeoEllipse3, GeoLine3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a segment, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoLine3 line, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
lineGeoLine3The segment.
toleranceToleranceThe tolerance: a point of the segment within its point tolerance of the rim, measured in space, is on it.
Returns
- GeoPoint3[]
At most two points, in order along the segment, and only ones the segment reaches: where it passes the rim, read as it lies over the plane, and where it pierces the plane on the rim. The one from (-400, 50, 0) to (400, 50, 0) crosses the ellipse 300 by 100 lying in the plan about the origin at (-259.808, 50, 0), then at (259.808, 50, 0); the one from (-400, 50, -0.0009) to (400, 50, 0.0011), leaning a hair out of the plane, at (-259.808, 50, -0.00055) and (259.808, 50, 0.00075); the one from (300, 0, -10) to (300, 0, 10) at (300, 0, 0); one through the middle of the disc nowhere. A segment no longer than the point tolerance is read as its start where it does not truly cross the rim: it is given its start where that lies within the point tolerance of the rim, and nothing where it does not. One shorter than the vector tolerance crosses where it truly does: the one from (300, 0, 0.000004) to (300, 0, -0.000004) at (300, 0, 0), where it was given its start.
GetIntersections(GeoEllipse3, GeoRay3)
Gets every point where the rim of an ellipse in space crosses a ray, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoRay3 ray)
Parameters
ellipseGeoEllipse3rayGeoRay3
Returns
GetIntersections(GeoEllipse3, GeoRay3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a ray, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoRay3 ray, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
rayGeoRay3The ray.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
At most two points, in order along the ray, and only ones ahead of where it starts. The ray from the origin along X, in the plane of the ellipse 300 by 100 lying in the plan about the origin, crosses it at (300, 0, 0) only.
Remarks
A ray is read as a segment as far as it can reach the rim: to the point past which it is further from the centre than the major radius.
GetIntersections(GeoEllipse3, GeoArc3)
Gets every point where the rim of an ellipse in space crosses an arc, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoArc3 arc)
Parameters
ellipseGeoEllipse3arcGeoArc3
Returns
GetIntersections(GeoEllipse3, GeoArc3, Tolerance)
Gets every point where the rim of an ellipse in space crosses an arc, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoArc3 arc, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
arcGeoArc3The arc.
toleranceToleranceThe tolerance: two crossings no further apart than twice its point tolerance are one.
Returns
- GeoPoint3[]
The points of the arc on the rim, as the circle in space gives them against an arc, read from the arc: in order along the line the two planes share, or, in one plane, along the line square to the one from the arc's centre to the ellipse's. The half circle of radius 50 about (250, 0, 0), normal along Y, from (250, 0, 50) round through (300, 0, 0) to (250, 0, -50), meets the ellipse 300 by 100 lying in the plan about the origin at (300, 0, 0) only; the other half meets it nowhere.
Remarks
An arc that passes within the point tolerance of the rim without crossing it touches it, at the middle of the shortest line between them, as a circle does: not in one plane, away from the line the planes share; in one plane, wherever the two come within the tolerance of each other in space. At a tolerance of 0.05, the arc of radius 117.4 lying within it of the plane of an ellipse 31.7 by 0.01, its rim 0.038 from the ellipse's, touches it.
GetIntersections(GeoEllipse3, GeoCircle3)
Gets every point where the rim of an ellipse in space crosses a circle, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoCircle3 circle)
Parameters
ellipseGeoEllipse3circleGeoCircle3
Returns
GetIntersections(GeoEllipse3, GeoCircle3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a circle, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoCircle3 circle, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
circleGeoCircle3The circle.
toleranceToleranceThe tolerance: rims that come within its point tolerance of each other touch, and two crossings no further apart than twice it are one.
Returns
- GeoPoint3[]
The points the two rims share: in order along the line the two planes share, or, in one plane, along the line square to the one from the ellipse's centre to the circle's, as two circles' lie along their radical line; with one centre on the other, in the order of the eccentric angle. The circle of radius 150 about the origin crosses the ellipse 300 by 100 lying in the plan about it at four points, the first at (118.585, 91.856, 0); the circle of radius 50 about (250, 0, 0) standing upright on the X axis meets it at (300, 0, 0) only. None when the two draw the same curve.
Remarks
Not in one plane, rims that pass within the point tolerance of each other without crossing on the line the planes share touch, at the middle of the shortest line between them: the circle of radius 50 leaning 0.01 radians, the end of its diameter along X 0.0005 above (0, 100, 0) and its rim running square to the ellipse's there, touches the ellipse 300 by 100 lying in the plan about the origin at (0, 100, 0.00025). In one plane they touch wherever they come within the tolerance of each other in space, the circle read where it is and not laid flat: at a tolerance of 0.05, an ellipse 262.6 by 0.041 in the plan, within it of the plane of a circle of radius 12 846 leaning 0.61 radians off the plan, its rim 0.0019 from the circle's, touches it.
GetIntersections(GeoEllipse3, GeoEllipse3)
Gets every point where the rims of two ellipses in space cross, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEllipse3 other)
Parameters
ellipseGeoEllipse3otherGeoEllipse3
Returns
GetIntersections(GeoEllipse3, GeoEllipse3, Tolerance)
Gets every point where the rims of two ellipses in space cross, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEllipse3 other, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The first ellipse. In one plane the pair is read from the one lying within the planar tolerance of the other's plane, or, where both do, from the one that comes first in a fixed order, so that it gives the same points to the last digit whichever is asked first; they are put in order from that one, and in the opposite order where the other is asked first.
otherGeoEllipse3The other ellipse.
toleranceToleranceThe tolerance: rims that come within its point tolerance of each other touch, and two crossings no further apart than twice it are one.
Returns
- GeoPoint3[]
The points the two rims share, in the order the circle's crossings of a circle come in. The ellipse 300 by 100 lying in the plan about the origin and the same ellipse turned a quarter cross at (94.868, 94.868, 0) first, then at the three points mirrored from it. None when the two are the same ellipse: in one plane, their centres and radii within the point tolerance and their axes along one line, or both round within it, whatever their axes, as an ellipse 100.0004 by 99.9998 and one 100.0003 by 99.9999 turned a quarter about the same centre; or, one of them a circle, its two radii one to within 1E-12 of the larger, the centres and both radii of the other within the tolerance of the circle's, whichever way its axis points, as the ellipse 100.0007 by 99.9995 and the circle of radius 100 about its centre read as an ellipse (FromCircle(GeoCircle3)), which give none asked as a circle too.
Remarks
Not in one plane, the two give the same places to the last digit whichever is asked first, and rims that pass within the point tolerance of each other without crossing touch, at the middle of the shortest line between them: the ellipse 300 by 100 lying in the plan about the origin and an ellipse 200 by 100 leaning 0.01 radians, the end of its major axis 0.0005 above (0, 100, 0) and its rim running square to the first there, touch at (0, 100, 0.00025); 0.0011 above, they do not. In one plane the rims touch wherever they come within the tolerance of each other in space, and the points come in the opposite order asked the other way: an ellipse 1.97 by 0.0023 lying within the planar tolerance of the plane of one 15 338 by 15 274, which leans 0.02 radians off its own, their rims 0.00016 apart, touch near (-5595.742, -6793.740, -12510.089) whichever is asked first. Either way, where the ellipse not read is narrow, its rim no more than 32 tolerances from its major axis beside a place found, it is searched too, across its inside from that place and beyond the stretch about it that runs within the tolerance, so that a touch on its other side, which the one read passes between two of its readings, is found as well: a rim 30 080 by 18 333 passing 0.000013 from either side of a needle 2.78 by 0.0028, leaning 0.56 radians off its plane, touches it at both sides, 0.0026 apart, and a rim 36.66 by 30.95 passing an ellipse 21.88 by 0.908 within 0.0020 either side of the end of its major axis, the two places 0.056 apart and the gap rising 4 % above the tolerance between at a tolerance of 0.01, touches it at both. Wider than that beside the place, the ellipse not read is not searched, and two touches the one read passes between two readings stay one; so do two touches the reading of a narrow ellipse read first makes one: a needle 0.754 by 0.108 passing a rim 31 536 by 14 839 at two places 0.0357 apart, the gap rising 15 % above the tolerance between at a tolerance of 0.01, is given one place. Of 7 500 rims drawn across the end of an ellipse whose b² / a is 2 to 24 tolerances, at tolerances of 0.001, 0.01 and 0.05, each passing it within the tolerance at two places with the gap rising up to 15 % above it between, 27 are given one place: 22 read from the ellipse, and 5 read from the rim, the ellipse 14.9 to 21.9 tolerances wide beside the place and the gap rising under 0.7 % above the tolerance between.
GetIntersections(GeoEllipse3, GeoTriangle3)
Gets every point where the rim of an ellipse in space crosses a triangle, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoTriangle3 triangle)
Parameters
ellipseGeoEllipse3triangleGeoTriangle3
Returns
GetIntersections(GeoEllipse3, GeoTriangle3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a triangle, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoTriangle3 triangle, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
Where the rim pierces the triangle, the points of the triangle it goes through, in order along the line the two planes share; where the triangle lies in the ellipse's plane, the points where the rim cuts one of its three edges, edge by edge. The triangle (150, 0, -10), (150, 200, -10), (150, 0, 10), standing upright on the line x = 150, is pierced by the ellipse 300 by 100 lying in the plan about the origin at (150, 86.603, 0) only. A triangle with no area, by IsDegenerate(Tolerance), is crossed where its sides are.
GetIntersections(GeoEllipse3, GeoPolygon3)
Gets every point where the rim of an ellipse in space crosses a polygon, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygon3 polygon)
Parameters
ellipseGeoEllipse3polygonGeoPolygon3
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoEllipse3, GeoPolygon3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a polygon, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygon3 polygon, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
Where the rim pierces the polygon, the points of the region it goes through; where the polygon lies in the ellipse's plane, the points where the rim cuts the outline, edge by edge. The square 800 by 800 about the origin in the plan is cut by the ellipse 300 by 100 lying about the same centre at none of its edges; the rectangle 200 by 300, its first edge along y = -150, at four points, (100, -94.281, 0) on its second edge first.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoEllipse3, GeoFace3)
Gets every point where the rim of an ellipse in space crosses a face, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoFace3 face)
Parameters
ellipseGeoEllipse3faceGeoFace3
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoEllipse3, GeoFace3, Tolerance)
Gets every point where the rim of an ellipse in space crosses a face, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoFace3 face, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
faceGeoFace3The face.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
Where the rim pierces the face, the points of its material it goes through, so a rim passing down a hole reaches nothing; where the face lies in the ellipse's plane, the points where the rim cuts the outline, then the rim of each hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoEllipse3, GeoSolid3)
Gets every point where the rim of an ellipse in space crosses the surface of a solid, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoSolid3 solid)
Parameters
ellipseGeoEllipse3solidGeoSolid3
Returns
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetIntersections(GeoEllipse3, GeoSolid3, Tolerance)
Gets every point where the rim of an ellipse in space crosses the surface of a solid, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoSolid3 solid, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
solidGeoSolid3The solid.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
Where the rim goes in and where it comes out, face by face, the walls of any opening counted as surface and a place two faces share named once. The ellipse 300 by 100 lying in the plan about the centre of a box 200 by 300 by 200 leaves it through the two faces square to its major axis, at (±100, ±94.281, 0). A rim lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoEllipse3, GeoSolid3, Tolerance) reports instead.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetIntersections(GeoEllipse3, GeoObb3)
Gets every point where the rim of an ellipse in space crosses the surface of an oriented box, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoObb3 box)
Parameters
ellipseGeoEllipse3boxGeoObb3
Returns
GetIntersections(GeoEllipse3, GeoObb3, Tolerance)
Gets every point where the rim of an ellipse in space crosses the surface of an oriented box, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoObb3 box, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
boxGeoObb3The box.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
The points where the rim meets one of the six faces, face by face, each corner or edge counted once: the ellipse 300 by 100 lying in the plan about the centre of a box 200 by 300 by 200 meets it at (±100, ±94.281, 0). A box flat on one axis is the rectangle across it; one flat on two axes or three has no face and is met nowhere.
GetIntersections(GeoEllipse3, GeoAabb3)
Gets every point where the rim of an ellipse in space crosses the surface of an axis-aligned box, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoAabb3 box)
Parameters
ellipseGeoEllipse3boxGeoAabb3
Returns
GetIntersections(GeoEllipse3, GeoAabb3, Tolerance)
Gets every point where the rim of an ellipse in space crosses the surface of an axis-aligned box, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoAabb3 box, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
boxGeoAabb3The box; an empty one holds nothing and is crossed nowhere.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
The points the oriented box with the world's axes gives: the box 200 by 300 by 200 about the origin meets the ellipse 300 by 100 lying in the plan about it at (±100, ±94.281, 0).
GetIntersections(GeoEllipse3, GeoEdge3)
Gets every point where an edge crosses the rim of an ellipse in space, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEdge3 edge)
Parameters
ellipseGeoEllipse3edgeGeoEdge3
Returns
GetIntersections(GeoEllipse3, GeoEdge3, Tolerance)
Gets every point where an edge crosses the rim of an ellipse in space, within a tolerance: as a segment or as an arc, whichever the edge is.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEdge3 edge, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
edgeGeoEdge3The edge.
toleranceToleranceThe tolerance.
Returns
GetIntersections(GeoEllipse3, GeoPolylineArc3)
Gets every point where a curved chain crosses the rim of an ellipse in space, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolylineArc3 chain)
Parameters
ellipseGeoEllipse3chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
GetIntersections(GeoEllipse3, GeoPolylineArc3, Tolerance)
Gets every point where a curved chain crosses the rim of an ellipse in space, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
chainGeoPolylineArc3The curved chain.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
What each edge gives, edge by edge in the chain's order, a corner two edges share named once.
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
GetIntersections(GeoEllipse3, GeoPolygonArc3)
Gets every point where a curved loop crosses the rim of an ellipse in space, using the default tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygonArc3 loop)
Parameters
ellipseGeoEllipse3loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
GetIntersections(GeoEllipse3, GeoPolygonArc3, Tolerance)
Gets every point where a curved loop crosses the rim of an ellipse in space, within a tolerance.
public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance.
Returns
- GeoPoint3[]
What each edge gives, edge by edge in the loop's order, a corner two edges share named once.
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.