Method GetIntersections
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetIntersections(GeoAabb3)
Gets every point where this segment crosses the surface of an axis-aligned box, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
GetIntersections(GeoAabb3, Tolerance)
Gets every point where this segment crosses the surface of an axis-aligned box, within a tolerance.
public GeoPoint3[] GetIntersections(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoObb3)
Gets every point where this segment crosses the surface of an oriented box, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoObb3 box)
Parameters
boxGeoObb3
Returns
GetIntersections(GeoObb3, Tolerance)
Gets every point where this segment crosses the surface of an oriented box, within a tolerance.
public GeoPoint3[] GetIntersections(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoSolid3)
Gets every point where this segment crosses the surface of a solid, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSolid3 solid)
Parameters
solidGeoSolid3
Returns
GetIntersections(GeoSolid3, Tolerance)
Gets every point where this segment crosses the surface of a solid, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoArc3)
Gets every point where an arc crosses this segment, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
GetIntersections(GeoArc3, Tolerance)
Gets every point where an arc crosses this segment, within a tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoCircle3)
Gets every point where a circle crosses this segment, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
GetIntersections(GeoCircle3, Tolerance)
Gets every point where a circle crosses this segment, within a tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
GetIntersections(GeoPlane3)
Gets every point where this segment crosses a plane.
public GeoPoint3[] GetIntersections(GeoPlane3 plane)
Parameters
planeGeoPlane3
Returns
GetIntersections(GeoPlane3, Tolerance)
Gets every point where this segment crosses a plane, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A segment meets a plane at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. Where the segment only touches the plane, as CollidesWith(GeoPlane3, Tolerance) reads a touch, the point is the one of it nearest the plane, as a triangle and a polygon give one: the segment from (-50, 0, 0.5) to (50, 0, 0.0005) touches the plane z = 0 at its end. A segment lying in the plane, both ends within the planar tolerance of it, meets it along its length and names no place. A segment no longer than the point tolerance is read as its start unless it truly crosses the plane: at a thousandth, the one from (5, 5, 0.0015) to (5, 5, 0.0006) meets the floor nowhere, where it was given its end, and the one from (5, 5, 0.0008) to (5, 5, 0.0002) meets it at its start.
GetIntersections(GeoTriangle3)
Gets every point where this segment crosses a triangle.
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
GetIntersections(GeoTriangle3, Tolerance)
Gets every point where this segment crosses a triangle, within a tolerance.
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
Returns
Remarks
A segment meets a triangle at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoTriangle3, Tolerance) reads it. A segment that touches the triangle within the point tolerance without crossing it is given the point of it nearest the triangle, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0), is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the triangle, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the triangle along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.
GetIntersections(GeoPolygon3)
Gets every point where this segment crosses a polygon.
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
GetIntersections(GeoPolygon3, Tolerance)
Gets every point where this segment crosses a polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
Returns
Remarks
A segment meets a polygon at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoPolygon3, Tolerance) reads it. A segment that touches the polygon within the point tolerance without crossing it is given the point of it nearest the polygon, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the square 100 by 100 in the floor with a corner at the origin, is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the polygon, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the polygon along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the square 100 by 100 in the floor with a corner at the origin collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.
GetIntersections(GeoFace3)
Gets every point where this segment crosses a face.
public GeoPoint3[] GetIntersections(GeoFace3 face)
Parameters
faceGeoFace3
Returns
GetIntersections(GeoFace3, Tolerance)
Gets every point where this segment crosses a face, within a tolerance.
public GeoPoint3[] GetIntersections(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
A segment meets a face at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoFace3, Tolerance) reads it. A segment that touches the face within the point tolerance without crossing it is given the point of it nearest the face, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the material of the square 100 by 100 in the floor with a hole 40 by 40 in its middle, is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the face, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the face along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the square 100 by 100 in the floor with a corner at the origin collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.
GetIntersections(GeoLine3)
Gets where this segment crosses a segment, as a list.
public GeoPoint3[] GetIntersections(GeoLine3 line)
Parameters
lineGeoLine3
Returns
Remarks
Two straight pieces meet at one place, so the list is one long or empty. It is a list because a GeoEdge3 has to be able to ask the same question of a segment and of a bend.
There is deliberately no TryIntersectWith twin taking an array here: this type already has one
handing back a single point, and a second one differing only in the shape of its out would make
every existing call to it ambiguous. GetIntersection(GeoLine3) is the single-point
reading and this is the list reading of the same answer.
GetIntersections(GeoLine3, Tolerance)
Gets where this segment crosses a segment, as a list, within a tolerance.
public GeoPoint3[] GetIntersections(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoRay3)
Gets where this segment crosses a ray, as a list.
public GeoPoint3[] GetIntersections(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
Remarks
Two straight pieces meet at one place, so the list is one long or empty. It is a list because a GeoEdge3 has to be able to ask the same question of a segment and of a bend.
GetIntersections(GeoRay3, Tolerance)
Gets where this segment crosses a ray, as a list, within a tolerance.
public GeoPoint3[] GetIntersections(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoEdge3)
Gets every point where this segment crosses an edge: the same points, in the same order, as GetIntersections(GeoLine3).
public GeoPoint3[] GetIntersections(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
GetIntersections(GeoEdge3, Tolerance)
Gets every point where this segment crosses an edge, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).
public GeoPoint3[] GetIntersections(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoPolygonArc3)
Gets every point where this segment crosses a curved loop: the same points, in the same order, as GetIntersections(GeoLine3).
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolygonArc3, Tolerance)
Gets every point where this segment crosses a curved loop, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolyline3)
Gets every point where this segment crosses a straight chain: the same points, in the same order, as GetIntersections(GeoLine3).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolyline3, Tolerance)
Gets every point where this segment crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolylineArc3)
Gets every point where this segment crosses a curved chain: the same points, in the same order, as GetIntersections(GeoLine3).
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolylineArc3, Tolerance)
Gets every point where this segment crosses a curved chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoSphere3)
Gets the points where this segment crosses the surface of a ball, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
GetIntersections(GeoSphere3, Tolerance)
Gets the points where this segment crosses the surface of a ball, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
GetIntersections(GeoSpline3)
Gets the points where this line segment meets a spline, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline)
Parameters
splineGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoSpline3, Tolerance)
Gets the points where this line segment meets a spline, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline, Tolerance tolerance)
Parameters
splineGeoSpline3toleranceTolerance
Returns
- GeoPoint3[]
The same points the spline gives, in order along the spline from its start.
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoXLine3)
Gets the point where this line segment crosses an infinite line, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
GetIntersections(GeoXLine3, Tolerance)
Gets the point where this line segment crosses an infinite line, within a tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)