Method TryIntersectWith
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[])
Tries to find where a triangle and the surface of a solid cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoSolid3 solid, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3solidGeoSolid3intersectionsGeoPoint3[]
Returns
Remarks
A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) lying across it at half its height cross at four points.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance)
Tries to find where a triangle and the surface of a solid cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
solidGeoSolid3The solid.
intersectionsGeoPoint3[]The points of GetIntersections(GeoTriangle3, GeoSolid3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) lying across it at half its height cross at four points; a triangle wholly inside the box crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[])
Tries to find where a polygon and the surface of a solid cross, using the default tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoSolid3 solid, out GeoPoint3[] intersections)
Parameters
polygonGeoPolygon3solidGeoSolid3intersectionsGeoPoint3[]
Returns
Remarks
A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) lying across it at half its height cross at four points.
Exceptions
- ArgumentNullException
Thrown when the polygon or the solid is null.
TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance)
Tries to find where a polygon and the surface of a solid cross, within a tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
solidGeoSolid3The solid.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPolygon3, GeoSolid3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) lying across it at half its height cross at four points; a square wholly inside the box crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the polygon or the solid is null.
TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[])
Tries to find where the material of a face and the surface of a solid cross, using the default tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoSolid3 solid, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face or the solid is null.
TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance)
Tries to find where the material of a face and the surface of a solid cross, within a tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
faceGeoFace3The face.
solidGeoSolid3The solid.
intersectionsGeoPoint3[]The points of GetIntersections(GeoFace3, GeoSolid3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face or the solid is null.
TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[])
Tries to find where a triangle and the surface of an oriented box cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoObb3 box, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3boxGeoObb3intersectionsGeoPoint3[]
Returns
Remarks
The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where a triangle and the surface of an oriented box cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3boxGeoObb3intersectionsGeoPoint3[]toleranceTolerance
Returns
Remarks
The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[])
Tries to find where a triangle and the surface of an axis-aligned box cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3boxGeoAabb3intersectionsGeoPoint3[]
Returns
Remarks
The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the triangle with corners (30, -50, -50),
(30, 300, -50) and (30, -50, 300) standing across it cross at two points, and the answer is true. An empty
box is crossed nowhere, and the answer is false.
TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where a triangle and the surface of an axis-aligned box cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3boxGeoAabb3intersectionsGeoPoint3[]toleranceTolerance
Returns
Remarks
The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the triangle with corners (30, -50, -50),
(30, 300, -50) and (30, -50, 300) standing across it cross at two points, and the answer is true. An empty
box is crossed nowhere, and the answer is false.
TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[])
Tries to find where a polygon and the surface of an oriented box cross, using the default tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoObb3 box, out GeoPoint3[] intersections)
Parameters
polygonGeoPolygon3boxGeoObb3intersectionsGeoPoint3[]
Returns
Remarks
The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the polygon or the box is null.
TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where a polygon and the surface of an oriented box cross, within a tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon3boxGeoObb3intersectionsGeoPoint3[]toleranceTolerance
Returns
Remarks
The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the polygon or the box is null.
TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[])
Tries to find where a polygon and the surface of an axis-aligned box cross, using the default tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
polygonGeoPolygon3boxGeoAabb3intersectionsGeoPoint3[]
Returns
Remarks
The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a square wholly inside the box crosses nothing, and the answer is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in
x = 30 from (30, -10, -10) to (30, 110, 10) cross at two points, and the answer is true. An empty box is
crossed nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where a polygon and the surface of an axis-aligned box cross, within a tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon3boxGeoAabb3intersectionsGeoPoint3[]toleranceTolerance
Returns
Remarks
The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a square wholly inside the box crosses nothing, and the answer is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in
x = 30 from (30, -10, -10) to (30, 110, 10) cross at two points, and the answer is true. An empty box is
crossed nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[])
Tries to find where the material of a face and the surface of an oriented box cross, using the default tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoObb3 box, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at four points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the face or the box is null.
TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where the material of a face and the surface of an oriented box cross, within a tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
Returns
Remarks
The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at four points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the face or the box is null.
TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[])
Tries to find where the material of a face and the surface of an axis-aligned box cross, using the default tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer
is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in
x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at four points,
and the answer is true. An empty box is crossed nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where the material of a face and the surface of an axis-aligned box cross, within a tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
Returns
Remarks
The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for
ToObb().ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer
is false.
A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its
segment or its point: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in
x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at four points,
and the answer is true. An empty box is crossed nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[])
Tries to find where a plane cuts the edges of an oriented box, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoObb3 box, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The plane z = 50 cuts a box 100 by 100 by 100 standing on the floor at four points; the plane z = 150 misses it, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where a plane cuts the edges of an oriented box, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
boxGeoObb3The box.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPlane3, GeoObb3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when the plane cuts an edge anywhere; otherwise, false.
Remarks
The plane z = 50 cuts a box 100 by 100 by 100 standing on the floor at four points; the plane z = 150 misses it, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at two points, and the answer is true.
Exceptions
- ArgumentNullException
Thrown when the box is null.
TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[])
Tries to find where a plane cuts the edges of an axis-aligned box, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The plane z = 50 cuts the box from the origin to (100, 100, 100) at four points; the plane z = 150 misses it, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box from the origin to (100, 100, 0) and the plane x = 30 cross at two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.
TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where a plane cuts the edges of an axis-aligned box, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
boxGeoAabb3The box.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPlane3, GeoAabb3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when the plane cuts an edge anywhere; otherwise, false.
Remarks
The plane z = 50 cuts the box from the origin to (100, 100, 100) at four points; the plane z = 150 misses it, and the answer is false. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point: the box from the origin to (100, 100, 0) and the plane x = 30 cross at two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.
TryIntersectWith(GeoLine3, GeoLine3, out GeoPoint3)
Tries to find the point where two line segments meet, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoLine3, GeoLine3, out GeoPoint3, Tolerance)
Tries to find the point where two line segments meet, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
line1GeoLine3The first segment.
line2GeoLine3The second segment.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
- bool
true if the segments meet at a single point; otherwise, false.
Remarks
Two segments in space usually pass each other without meeting, so this asks for the closest approach and accepts it only when the gap is within tolerance. Parallel segments are refused even when they overlap, matching the 2D behaviour: a shared stretch is not a point.
A segment no longer than the point tolerance is read as its start where it does not truly cross the other: at a thousandth, the segment from (5, 0, 0.0004) to (5, 0, -0.0005) meets the one from the origin to (10, 0, 0) at (5, 0, 0), where it crosses it; the one from (5, 0, 0.0008) to (5, 0, 0.0002) meets it at its start, which lies within the tolerance of it; and the one from (5, 0, 0.0015) to (5, 0, 0.0006) meets it nowhere, its start 0.0015 off, where its end was read within the tolerance of it. One shorter than the vector tolerance crosses where it truly does too: the segment from (5, 0, 0.000004) to (5, 0, -0.000004) meets it at (5, 0, 0), where it was given its start, too short for the vector tolerance to read a direction in.
TryIntersectWith(GeoLine3, GeoLine3, LineExtension, out GeoPoint3)
Tries to find the point where two line segments meet, reading either or both as the infinite line carrying it, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, LineExtension extension, out GeoPoint3 intersection)
Parameters
line1GeoLine3line2GeoLine3extensionLineExtensionintersectionGeoPoint3
Returns
TryIntersectWith(GeoLine3, GeoLine3, LineExtension, out GeoPoint3, Tolerance)
Tries to find the point where two line segments meet, reading either or both as the infinite line carrying it, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, LineExtension extension, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
line1GeoLine3The first segment.
line2GeoLine3The second segment.
extensionLineExtensionWhich of the two may be reached past its endpoints.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
- bool
true if the lines meet at a single point within the reach allowed; otherwise, false.
Remarks
As without an extension, the lines must actually meet: the gap at their closest approach must be within tolerance. Two axes that pass each other in space do not meet however far they are extended; GetShortestLineTo(GeoLine3, GeoLine3, LineExtension, Tolerance) gives the segment bridging them. Parallel lines are refused.
Exceptions
- ArgumentOutOfRangeException
Thrown when the extension is not a defined value.
TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3)
Tries to find the point where a line segment crosses a plane, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoPlane3 plane, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3, Tolerance)
Tries to find the point where a line segment crosses a plane, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
Returns
Remarks
A segment running parallel to the plane is refused whether it lies in the plane or beside it: in the first case every one of its points is a crossing, in the second none is, and neither gives the single point this method promises. A segment no longer than the point tolerance is read as its start where it does not truly cross the plane: at a thousandth, the segment from (5, 5, 0.0004) to (5, 5, -0.0005) crosses the floor at (5, 5, 0), the one from (5, 5, 0.0008) to (5, 5, 0.0002) meets it at its start, within the planar tolerance of it, and the one from (5, 5, 0.0015) to (5, 5, 0.0006) meets it nowhere.
TryIntersectWith(GeoRay3, GeoPlane3, out GeoPoint3)
Tries to find the point where a ray crosses a plane, using the default tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoPlane3 plane, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoRay3, GeoPlane3, out GeoPoint3, Tolerance)
Tries to find the point where a ray crosses a plane, within a tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
Returns
Remarks
A ray starting within the planar tolerance of the plane lies in it only where it runs level with it to rounding, and then meets it along its whole length and names no place. One dipping towards the plane, however shallowly, crosses it where it reaches height nought, and one rising away from it touches it at its origin, the one point of it within the tolerance it never comes back to: the ray from (5, 5, 0.0004) along (1, 0, -0.01) crosses the floor at (5.04, 5, 0), and along (1, 0, 0.01) touches it at (5, 5, 0.0004). A ray starting off the plane reaches it at one point at any angle but none at all.
TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3)
Tries to find the point where a line segment crosses a triangle, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoTriangle3 triangle, out GeoPoint3 intersection)
Parameters
lineGeoLine3triangleGeoTriangle3intersectionGeoPoint3
Returns
TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3, Tolerance)
Tries to find the point where a line segment crosses a triangle, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
lineGeoLine3triangleGeoTriangle3intersectionGeoPoint3toleranceTolerance
Returns
Remarks
The crossing is found against the triangle's carrier plane and then tested for containment, so
the edges of the triangle are decided by the same tolerance-aware test that
Containment3.Contains uses. A segment lying in the plane of the triangle is refused for
the same reason it is refused against a bare plane. Whether the triangle has an area is read by
IsDegenerate(Tolerance): the triangle 0.003 by 0.003 at the origin has, and the segment
from (0.001, 0.001, -1) to (0.001, 0.001, 1) crosses it at (0.001, 0.001, 0). One with none is the segment it has
collapsed to within the point tolerance, and is crossed where its sides are, the longest first: the segment from
(50, 0, -1) to (50, 0, 1) crosses the sliver 100 long and 1E-8 high at (50, 0, 0). Both crossed nothing while twice
the area was read against the vector tolerance. However small the tolerance, the triangle holds the crossing to the
rounding of the coordinates, 1E-15 of the largest of its own and the segment's, on its plane and past its rim, as it
holds a ray's, and a segment reaching from further off than the triangle is large is read from a diagonal short of
it, along its line; whether the crossing lies between the ends is read by the tolerance given. Below that rounding,
and only there, a segment with an end within it of the triangle, the other end off its plane, crosses it at that end
where it touches it as CollidesWith(GeoLine3, GeoTriangle3, Tolerance) reads it, and
nowhere else. At a tolerance of nought the segment from 30 under the middle of a triangle turned about in space to
30 over it crosses it there, where the rounding refused 920 of 1 000 such triangles, and the one from 10 off the side
of a box turned about in space to a point on it crosses its triangle where it touches it, and only there, where the
two read alike 488 times in 1 000.
A segment no longer than the point tolerance is read as its start where it does not truly cross the triangle: it meets it at its start where that lies within the point tolerance of the triangle, and nowhere where it does not, as TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3, Tolerance) reads one against a plane.
TryIntersectWith(GeoRay3, GeoTriangle3, out GeoPoint3)
Tries to find the point where a ray crosses a triangle, using the default tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoTriangle3 triangle, out GeoPoint3 intersection)
Parameters
rayGeoRay3triangleGeoTriangle3intersectionGeoPoint3
Returns
TryIntersectWith(GeoRay3, GeoTriangle3, out GeoPoint3, Tolerance)
Tries to find the point where a ray crosses a triangle, within a tolerance: the first point GetIntersections(GeoRay3, GeoTriangle3, Tolerance) gives, and false where it gives none.
public static bool TryIntersectWith(GeoRay3 ray, GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
rayGeoRay3triangleGeoTriangle3intersectionGeoPoint3toleranceTolerance
Returns
Remarks
The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 20, 0.0002) falling 4E-6 for each unit along X climbs 0.00032 across the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 20, 0) while the list gave none; the ray from (20, 20, 10) pointing straight down crosses it at (20, 20, 0).
TryIntersectWith(GeoPlane3, GeoPlane3, out GeoRay3)
Tries to find the line where two planes meet, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane1, GeoPlane3 plane2, out GeoRay3 intersection)
Parameters
Returns
TryIntersectWith(GeoPlane3, GeoPlane3, out GeoRay3, Tolerance)
Tries to find the line where two planes meet, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane1, GeoPlane3 plane2, out GeoRay3 intersection, Tolerance tolerance)
Parameters
plane1GeoPlane3The first plane.
plane2GeoPlane3The second plane.
intersectionGeoRay3A ray along the line of intersection when the method returns true. The line is infinite in both directions and the ray only names it:
GetPointAtDistancetakes negative distances, so the half behind the origin is reachable too.toleranceToleranceThe tolerance.
Returns
- bool
true if the planes meet in a line; otherwise, false.
Remarks
Parallel planes are refused whether they are apart, in which case they never meet, or coincident, in which case they meet everywhere. The origin of the returned ray is the point of the intersection line closest to the world origin, which makes the result depend only on the two planes and not on where their own origins happen to sit.
TryIntersectWith(GeoLine3, GeoPolygon3, out GeoPoint3)
Tries to find the point where a line segment crosses a polygon, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoPolygon3 polygon, out GeoPoint3 intersection)
Parameters
lineGeoLine3polygonGeoPolygon3intersectionGeoPoint3
Returns
TryIntersectWith(GeoLine3, GeoPolygon3, out GeoPoint3, Tolerance)
Tries to find the point where a line segment crosses a polygon, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
lineGeoLine3polygonGeoPolygon3intersectionGeoPoint3toleranceTolerance
Returns
Remarks
The crossing is found against the polygon's carrier plane and then tested for containment, so
the boundary is decided by the same tolerance-aware test Containment3.Contains uses. A
segment lying in the plane of the polygon is refused, as it is against a bare plane: every one
of its points inside the outline would be a crossing. A segment no longer than the point tolerance is read as its
start where it does not truly cross the polygon, as against a triangle.
TryIntersectWith(GeoRay3, GeoPolygon3, out GeoPoint3)
Tries to find the point where a ray crosses a polygon, using the default tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoPolygon3 polygon, out GeoPoint3 intersection)
Parameters
rayGeoRay3polygonGeoPolygon3intersectionGeoPoint3
Returns
TryIntersectWith(GeoRay3, GeoPolygon3, out GeoPoint3, Tolerance)
Tries to find the point where a ray crosses a polygon, within a tolerance: the first point GetIntersections(GeoRay3, GeoPolygon3, Tolerance) gives, and false where it gives none.
public static bool TryIntersectWith(GeoRay3 ray, GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
rayGeoRay3polygonGeoPolygon3intersectionGeoPoint3toleranceTolerance
Returns
Remarks
The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 50, 0.0002) falling 4E-6 for each unit along X climbs 0.0004 across the square 100 by 100 in the floor with a corner at the origin and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 50, 0) while the list gave none; the ray from (20, 20, 10) pointing straight down crosses it at (20, 20, 0).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoLine3, GeoFace3, out GeoPoint3)
Tries to find the point where a line segment crosses a face, using the default tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoFace3 face, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoLine3, GeoFace3, out GeoPoint3, Tolerance)
Tries to find the point where a line segment crosses a face, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
Returns
Remarks
The holes in the face are respected: a segment threading through a hole passes through nothing and is reported as missing the face. However small the tolerance, the face holds the crossing to the rounding of the coordinates, 1E-15 of the largest of its own and the segment's, on its plane and past its rim, and an end within that rounding of it is read as TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3, Tolerance) reads one of a triangle, by CollidesWith(GeoLine3, GeoFace3, Tolerance). At a tolerance of nought the segment from 30 under the middle of a face turned about in space to 30 over it crosses it there, where the rounding refused 928 of 1 000 such faces. A segment no longer than the point tolerance is read as its start where it does not truly cross the material, as against a triangle.
TryIntersectWith(GeoRay3, GeoFace3, out GeoPoint3)
Tries to find the point where a ray crosses a face, using the default tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoFace3 face, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoRay3, GeoFace3, out GeoPoint3, Tolerance)
Tries to find the point where a ray crosses the material of a face, within a tolerance: the first point GetIntersections(GeoRay3, GeoFace3, Tolerance) gives, and false where it gives none.
public static bool TryIntersectWith(GeoRay3 ray, GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
Returns
Remarks
The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 50, 0.0002) falling 4E-6 for each unit along X climbs 0.0004 across the square 100 by 100 in the floor with a corner at the origin and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 50, 0) while the list gave none. The ray from (50, 50, 10) pointing straight down through a hole 40 by 40 in the middle of the square crosses nothing.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoPolyline3, GeoPlane3, out GeoPoint3[])
Tries to find where a straight chain crosses a plane.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPlane3 plane, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3planeGeoPlane3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoPlane3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a plane, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPlane3 plane, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
planeGeoPlane3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoLine3, out GeoPoint3[])
Tries to find where a straight chain crosses a segment.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoLine3 line, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3lineGeoLine3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoLine3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a segment, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
lineGeoLine3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoRay3, out GeoPoint3[])
Tries to find where a straight chain crosses a ray.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoRay3 ray, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3rayGeoRay3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoRay3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a ray, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoRay3 ray, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
rayGeoRay3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoArc3, out GeoPoint3[])
Tries to find where a straight chain crosses an arc.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoArc3 arc, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3arcGeoArc3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoArc3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses an arc, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
arcGeoArc3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoCircle3, out GeoPoint3[])
Tries to find where a straight chain crosses a circle.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoCircle3 circle, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3circleGeoCircle3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoCircle3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a circle, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
circleGeoCircle3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoTriangle3, out GeoPoint3[])
Tries to find where a straight chain crosses a triangle.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoTriangle3 triangle, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3triangleGeoTriangle3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a triangle, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
triangleGeoTriangle3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoPolygon3, out GeoPoint3[])
Tries to find where a straight chain crosses a polygon.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3polygonGeoPolygon3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a polygon, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
polygonGeoPolygon3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoFace3, out GeoPoint3[])
Tries to find where a straight chain crosses a face.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoFace3 face, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3faceGeoFace3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a face, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
faceGeoFace3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoObb3, out GeoPoint3[])
Tries to find where a straight chain crosses a box.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoObb3 box, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3boxGeoObb3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoObb3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a box, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
boxGeoObb3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoAabb3, out GeoPoint3[])
Tries to find where a straight chain crosses a square box.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoAabb3 box, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3boxGeoAabb3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoAabb3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a square box, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
boxGeoAabb3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoSolid3, out GeoPoint3[])
Tries to find where a straight chain crosses a body.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoSolid3 solid, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3solidGeoSolid3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoSolid3, out GeoPoint3[], Tolerance)
Tries to find where a straight chain crosses a body, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
solidGeoSolid3The shape to cross with.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, GeoPolyline3, out GeoPoint3[])
Tries to find where two straight chains cross.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolyline3 other, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3otherGeoPolyline3intersectionsGeoPoint3[]
Returns
TryIntersectWith(GeoPolyline3, GeoPolyline3, out GeoPoint3[], Tolerance)
Tries to find where two straight chains cross, within a tolerance.
public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolyline3 other, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3The first chain.
otherGeoPolyline3The second chain.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when either chain is null.
TryIntersectWith(GeoTriangle3, GeoTriangle3, out GeoPoint3[])
Tries to find where two triangles cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2, out GeoPoint3[] intersections)
Parameters
triangle1GeoTriangle3triangle2GeoTriangle3intersectionsGeoPoint3[]
Returns
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the upright one with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at two points.
TryIntersectWith(GeoTriangle3, GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where two triangles cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangle1GeoTriangle3The first triangle.
triangle2GeoTriangle3The second triangle.
intersectionsGeoPoint3[]The points of GetIntersections(GeoTriangle3, GeoTriangle3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the upright one with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at two points.
TryIntersectWith(GeoTriangle3, GeoPolygon3, out GeoPoint3[])
Tries to find where a triangle and a polygon cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3polygonGeoPolygon3intersectionsGeoPoint3[]
Returns
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at two points.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoTriangle3, GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where a triangle and a polygon cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The points of GetIntersections(GeoTriangle3, GeoPolygon3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at two points.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[])
Tries to find where a triangle and the material of a face cross, using the default tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoFace3 face, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3faceGeoFace3intersectionsGeoPoint3[]
Returns
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10) standing in the hole, do not meet, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where a triangle and the material of a face cross, within a tolerance.
public static bool TryIntersectWith(GeoTriangle3 triangle, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
faceGeoFace3The face, read by its material.
intersectionsGeoPoint3[]The points of GetIntersections(GeoTriangle3, GeoFace3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10) standing in the hole, do not meet, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoPolygon3, GeoPolygon3, out GeoPoint3[])
Tries to find where two polygons cross, using the default tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon1, GeoPolygon3 polygon2, out GeoPoint3[] intersections)
Parameters
polygon1GeoPolygon3polygon2GeoPolygon3intersectionsGeoPoint3[]
Returns
Remarks
A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at two points.
Exceptions
- ArgumentNullException
Thrown when either polygon is null.
TryIntersectWith(GeoPolygon3, GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where two polygons cross, within a tolerance.
public static bool TryIntersectWith(GeoPolygon3 polygon1, GeoPolygon3 polygon2, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygon1GeoPolygon3The first polygon.
polygon2GeoPolygon3The second polygon.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPolygon3, GeoPolygon3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at two points.
Exceptions
- ArgumentNullException
Thrown when either polygon is null.
TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[])
Tries to find where the material of a face and a polygon cross, using the default tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
faceGeoFace3polygonGeoPolygon3intersectionsGeoPoint3[]
Returns
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross at four points.
Exceptions
- ArgumentNullException
Thrown when the face or the polygon is null.
TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the material of a face and a polygon cross, within a tolerance.
public static bool TryIntersectWith(GeoFace3 face, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
faceGeoFace3The face, read by its material.
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The points of GetIntersections(GeoFace3, GeoPolygon3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross at four points.
Exceptions
- ArgumentNullException
Thrown when the face or the polygon is null.
TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[])
Tries to find where the materials of two faces cross, using the default tolerance.
public static bool TryIntersectWith(GeoFace3 face1, GeoFace3 face2, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
A face standing wholly in a hole of another, touching neither its material nor the rim, crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when either face is null.
TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the materials of two faces cross, within a tolerance.
public static bool TryIntersectWith(GeoFace3 face1, GeoFace3 face2, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
face1GeoFace3The first face.
face2GeoFace3The second face.
intersectionsGeoPoint3[]The points of GetIntersections(GeoFace3, GeoFace3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
A face standing wholly in a hole of another, touching neither its material nor the rim, crosses nothing, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when either face is null.
TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[])
Tries to find where the edges of a triangle cross a plane, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoTriangle3 triangle, out GeoPoint3[] intersections)
Parameters
planeGeoPlane3triangleGeoTriangle3intersectionsGeoPoint3[]
Returns
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at two points.
TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a triangle cross a plane, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
triangleGeoTriangle3The triangle.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPlane3, GeoTriangle3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at two points; a triangle lying in the floor crosses it nowhere, and the answer is false.
TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[])
Tries to find where the edges of a polygon cross a plane, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
planeGeoPlane3polygonGeoPolygon3intersectionsGeoPoint3[]
Returns
Remarks
The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at two points.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a polygon cross a plane, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPlane3, GeoPolygon3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at two points; a square lying in the floor crosses it nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[])
Tries to find where the edges of a face cross a plane, using the default tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoFace3 face, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at four points.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the edges of a face cross a plane, within a tolerance.
public static bool TryIntersectWith(GeoPlane3 plane, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
faceGeoFace3The face.
intersectionsGeoPoint3[]The points of GetIntersections(GeoPlane3, GeoFace3, Tolerance), in the same order; empty when there are none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross anywhere; otherwise, false.
Remarks
The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at four points.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[])
Tries to find where two rays cross, using the default tolerance.
public static bool TryIntersectWith(GeoRay3 ray1, GeoRay3 ray2, out GeoPoint3[] intersections)
Parameters
Returns
Remarks
A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0).
TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[], Tolerance)
Tries to find where two rays cross, within a tolerance.
public static bool TryIntersectWith(GeoRay3 ray1, GeoRay3 ray2, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
ray1GeoRay3The first ray.
ray2GeoRay3The second ray.
intersectionsGeoPoint3[]The point of GetIntersections(GeoRay3, GeoRay3, Tolerance); empty when there is none.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross at a place; otherwise, false.
Remarks
A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0); two rays along the X axis from 0 and from 100, facing each other, meet along a length and the answer is false.
TryIntersectWith(GeoLine3, GeoRay3, out GeoPoint3[])
Tries to find where a segment crosses a ray.
public static bool TryIntersectWith(GeoLine3 line, GeoRay3 ray, out GeoPoint3[] intersections)
Parameters
Returns
TryIntersectWith(GeoLine3, GeoRay3, out GeoPoint3[], Tolerance)
Tries to find where a segment crosses a ray, within a tolerance.
public static bool TryIntersectWith(GeoLine3 line, GeoRay3 ray, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
lineGeoLine3The segment.
rayGeoRay3The ray.
intersectionsGeoPoint3[]The one place they cross when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross at a place; otherwise, false.
TryIntersectWith(GeoRay3, GeoLine3, out GeoPoint3[])
Tries to find where a ray crosses a segment.
public static bool TryIntersectWith(GeoRay3 ray, GeoLine3 line, out GeoPoint3[] intersections)
Parameters
Returns
TryIntersectWith(GeoRay3, GeoLine3, out GeoPoint3[], Tolerance)
Tries to find where a ray crosses a segment, within a tolerance.
public static bool TryIntersectWith(GeoRay3 ray, GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
rayGeoRay3The ray.
lineGeoLine3The segment.
intersectionsGeoPoint3[]The one place they cross when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they cross at a place; otherwise, false.