Method CollidesWith
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
CollidesWith(GeoAabb3, GeoAabb3)
Checks whether two axis-aligned boxes overlap, using the default tolerance.
public static bool CollidesWith(GeoAabb3 box1, GeoAabb3 box2)
Parameters
Returns
CollidesWith(GeoAabb3, GeoAabb3, Tolerance)
Checks whether two axis-aligned boxes overlap, within a tolerance.
public static bool CollidesWith(GeoAabb3 box1, GeoAabb3 box2, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoObb3, GeoObb3)
Checks whether two oriented boxes overlap, using the default tolerance.
public static bool CollidesWith(GeoObb3 box1, GeoObb3 box2)
Parameters
Returns
CollidesWith(GeoObb3, GeoObb3, Tolerance)
Checks whether two oriented boxes overlap, within a tolerance.
public static bool CollidesWith(GeoObb3 box1, GeoObb3 box2, Tolerance tolerance)
Parameters
box1GeoObb3The first box.
box2GeoObb3The second box.
toleranceToleranceThe tolerance; boxes closer than this count as touching.
Returns
- bool
true if the boxes overlap or touch; otherwise, false.
Remarks
This is the separating axis theorem. Two convex shapes miss each other exactly when some direction exists along which their shadows do not overlap, and for a pair of boxes it is enough to try fifteen directions: the three axes of each box, and the nine cross products pairing one axis from each. The first six catch a face separating them and the last nine catch an edge, the case where two boxes pass by each other at an angle with no face facing the gap.
CollidesWith(GeoLine3, GeoObb3)
Checks whether a line segment reaches into an oriented box, using the default tolerance.
public static bool CollidesWith(GeoLine3 line, GeoObb3 box)
Parameters
Returns
CollidesWith(GeoLine3, GeoObb3, Tolerance)
Checks whether a line segment reaches into an oriented box, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoObb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoTriangle3, GeoTriangle3)
Checks whether two triangles overlap, using the default tolerance.
public static bool CollidesWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2)
Parameters
triangle1GeoTriangle3triangle2GeoTriangle3
Returns
CollidesWith(GeoTriangle3, GeoTriangle3, Tolerance)
Checks whether two triangles overlap, within a tolerance.
public static bool CollidesWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2, Tolerance tolerance)
Parameters
triangle1GeoTriangle3triangle2GeoTriangle3toleranceTolerance
Returns
Remarks
Two triangles that are not coplanar can only meet along a line, so it is enough to ask whether any edge of one pierces the other. Coplanar triangles meet across an area instead and that test finds nothing, so they are handled separately by looking for a vertex of one inside the other or for a pair of edges crossing.
CollidesWith(GeoSolid3, GeoSolid3)
Checks whether two solids overlap, using the default tolerance.
public static bool CollidesWith(GeoSolid3 solid1, GeoSolid3 solid2)
Parameters
Returns
CollidesWith(GeoSolid3, GeoSolid3, Tolerance)
Checks whether two solids overlap, within a tolerance.
public static bool CollidesWith(GeoSolid3 solid1, GeoSolid3 solid2, Tolerance tolerance)
Parameters
solid1GeoSolid3The first solid.
solid2GeoSolid3The second solid.
toleranceToleranceThe tolerance.
Returns
- bool
true if the solids share any space; otherwise, false.
Remarks
Two closed bodies overlap in one of exactly two ways: their surfaces cross, or one sits wholly inside the other with no surface contact at all. The first is found by testing the surface triangles against each other, the second by testing a single vertex of each body against the other, which settles it because a body that is inside without touching is entirely inside. Bounding boxes are checked first, since that rejects most pairs before any triangle is touched.
CollidesWith(GeoObb3, GeoSolid3)
Checks whether an oriented box overlaps a solid, using the default tolerance.
public static bool CollidesWith(GeoObb3 box, GeoSolid3 solid)
Parameters
Returns
CollidesWith(GeoObb3, GeoSolid3, Tolerance)
Checks whether an oriented box overlaps a solid, within a tolerance.
public static bool CollidesWith(GeoObb3 box, GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoObb3, GeoAabb3)
Checks whether an oriented box overlaps an axis-aligned one, using the default tolerance.
public static bool CollidesWith(GeoObb3 box1, GeoAabb3 box2)
Parameters
Returns
CollidesWith(GeoObb3, GeoAabb3, Tolerance)
Checks whether an oriented box overlaps an axis-aligned one, within a tolerance.
public static bool CollidesWith(GeoObb3 box1, GeoAabb3 box2, Tolerance tolerance)
Parameters
Returns
Remarks
An axis-aligned box is an oriented box that happens to line up with the world, so this is the same separating axis test with one of the two frames already known.
CollidesWith(GeoLine3, GeoAabb3)
Checks whether a line segment reaches into an axis-aligned box, using the default tolerance.
public static bool CollidesWith(GeoLine3 line, GeoAabb3 box)
Parameters
Returns
CollidesWith(GeoLine3, GeoAabb3, Tolerance)
Checks whether a line segment reaches into an axis-aligned box, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoLine3, GeoSolid3)
Checks whether a line segment reaches into a solid, using the default tolerance.
public static bool CollidesWith(GeoLine3 line, GeoSolid3 solid)
Parameters
Returns
CollidesWith(GeoLine3, GeoSolid3, Tolerance)
Checks whether a line segment reaches into a solid, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
Remarks
A segment lying wholly inside the body touches it without crossing its surface, so containment is checked as well as crossing.
CollidesWith(GeoPolyline3, GeoSolid3)
Checks whether a polyline reaches into a solid, using the default tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoSolid3 solid)
Parameters
polylineGeoPolyline3solidGeoSolid3
Returns
CollidesWith(GeoPolyline3, GeoSolid3, Tolerance)
Checks whether a polyline reaches into a solid, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoSolid3 solid, Tolerance tolerance)
Parameters
polylineGeoPolyline3solidGeoSolid3toleranceTolerance
Returns
CollidesWith(GeoPolygon3, GeoSolid3)
Checks whether a polygon overlaps a solid, using the default tolerance.
public static bool CollidesWith(GeoPolygon3 polygon, GeoSolid3 solid)
Parameters
polygonGeoPolygon3solidGeoSolid3
Returns
CollidesWith(GeoPolygon3, GeoSolid3, Tolerance)
Checks whether a polygon overlaps a solid, within a tolerance.
public static bool CollidesWith(GeoPolygon3 polygon, GeoSolid3 solid, Tolerance tolerance)
Parameters
polygonGeoPolygon3solidGeoSolid3toleranceTolerance
Returns
Remarks
A flat region and a body meet in one of two ways: their surfaces cross, or the region lies wholly within the body without touching its boundary. The first is found by testing the triangles of each against the other, the second by testing one point of the region.
CollidesWith(GeoPolygon3, GeoObb3)
Checks whether a polygon overlaps an oriented box, using the default tolerance.
public static bool CollidesWith(GeoPolygon3 polygon, GeoObb3 box)
Parameters
polygonGeoPolygon3boxGeoObb3
Returns
CollidesWith(GeoPolygon3, GeoObb3, Tolerance)
Checks whether a polygon overlaps an oriented box, within a tolerance.
public static bool CollidesWith(GeoPolygon3 polygon, GeoObb3 box, Tolerance tolerance)
Parameters
polygonGeoPolygon3boxGeoObb3toleranceTolerance
Returns
CollidesWith(GeoFace3, GeoSolid3)
Checks whether a face overlaps a solid, using the default tolerance.
public static bool CollidesWith(GeoFace3 face, GeoSolid3 solid)
Parameters
Returns
CollidesWith(GeoFace3, GeoSolid3, Tolerance)
Checks whether a face overlaps a solid, within a tolerance.
public static bool CollidesWith(GeoFace3 face, GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
Remarks
Only the outer boundary of the face is tested. A hole is material that is not there, so a body reaching a face only through one of its holes touches nothing — but a face whose holes were ignored would report a collision that is not real. The boundary test is therefore the conservative one, and is refined by asking whether the meeting place is over a hole.
CollidesWith(GeoLine3, GeoPlane3)
Determines whether a segment touches a plane.
public static bool CollidesWith(GeoLine3 line, GeoPlane3 plane)
Parameters
Returns
CollidesWith(GeoLine3, GeoPlane3, Tolerance)
Determines whether a segment touches a plane, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A plane is endless, so this is not a crossing test: a segment lying in the plane touches it along its whole length and crosses it nowhere. The two ends decide it — either one on the plane, or one each side of it.
CollidesWith(GeoLine3, GeoTriangle3)
Determines whether a segment touches a triangle.
public static bool CollidesWith(GeoLine3 line, GeoTriangle3 triangle)
Parameters
lineGeoLine3triangleGeoTriangle3
Returns
CollidesWith(GeoLine3, GeoTriangle3, Tolerance)
Determines whether a segment touches a triangle, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoTriangle3 triangle, Tolerance tolerance)
Parameters
lineGeoLine3triangleGeoTriangle3toleranceTolerance
Returns
CollidesWith(GeoLine3, GeoPolygon3)
Determines whether a segment touches a polygon.
public static bool CollidesWith(GeoLine3 line, GeoPolygon3 polygon)
Parameters
lineGeoLine3polygonGeoPolygon3
Returns
CollidesWith(GeoLine3, GeoPolygon3, Tolerance)
Determines whether a segment touches a polygon, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoPolygon3 polygon, Tolerance tolerance)
Parameters
lineGeoLine3polygonGeoPolygon3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoLine3, GeoFace3)
Determines whether a segment touches a face.
public static bool CollidesWith(GeoLine3 line, GeoFace3 face)
Parameters
Returns
CollidesWith(GeoLine3, GeoFace3, Tolerance)
Determines whether a segment touches a face, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
A segment passing over a hole of the face touches nothing, because the crossing test reads the holes as the absences they are.
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoRay3, GeoTriangle3)
Determines whether a ray runs into a triangle.
public static bool CollidesWith(GeoRay3 ray, GeoTriangle3 triangle)
Parameters
rayGeoRay3triangleGeoTriangle3
Returns
CollidesWith(GeoRay3, GeoTriangle3, Tolerance)
Determines whether a ray runs into a triangle, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoTriangle3 triangle, Tolerance tolerance)
Parameters
rayGeoRay3triangleGeoTriangle3toleranceTolerance
Returns
CollidesWith(GeoRay3, GeoPolygon3)
Determines whether a ray runs into a polygon.
public static bool CollidesWith(GeoRay3 ray, GeoPolygon3 polygon)
Parameters
rayGeoRay3polygonGeoPolygon3
Returns
CollidesWith(GeoRay3, GeoPolygon3, Tolerance)
Determines whether a ray runs into a polygon, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoPolygon3 polygon, Tolerance tolerance)
Parameters
rayGeoRay3polygonGeoPolygon3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoRay3, GeoFace3)
Determines whether a ray runs into a face.
public static bool CollidesWith(GeoRay3 ray, GeoFace3 face)
Parameters
Returns
CollidesWith(GeoRay3, GeoFace3, Tolerance)
Determines whether a ray runs into a face, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoRay3, GeoAabb3)
Determines whether a ray starts inside an axis-aligned box or runs into it.
public static bool CollidesWith(GeoRay3 ray, GeoAabb3 box)
Parameters
Returns
CollidesWith(GeoRay3, GeoAabb3, Tolerance)
Determines whether a ray starts inside an axis-aligned box or runs into it, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoRay3, GeoObb3)
Determines whether a ray starts inside an oriented box or runs into it.
public static bool CollidesWith(GeoRay3 ray, GeoObb3 box)
Parameters
Returns
CollidesWith(GeoRay3, GeoObb3, Tolerance)
Determines whether a ray starts inside an oriented box or runs into it, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoObb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoAabb3, GeoSolid3)
Determines whether an axis-aligned box touches or overlaps a solid.
public static bool CollidesWith(GeoAabb3 box, GeoSolid3 solid)
Parameters
Returns
CollidesWith(GeoAabb3, GeoSolid3, Tolerance)
Determines whether an axis-aligned box touches or overlaps a solid, within a tolerance.
public static bool CollidesWith(GeoAabb3 box, GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
Remarks
An axis-aligned box is an oriented box whose axes happen to be the world's, so this is the oriented answer and not an approximation of it.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
CollidesWith(GeoPolyline3, GeoPlane3)
Determines whether a straight chain touches a plane.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPlane3 plane)
Parameters
polylineGeoPolyline3planeGeoPlane3
Returns
CollidesWith(GeoPolyline3, GeoPlane3, Tolerance)
Determines whether a straight chain touches a plane, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPlane3 plane, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
planeGeoPlane3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoLine3)
Determines whether a straight chain touches a segment.
public static bool CollidesWith(GeoPolyline3 polyline, GeoLine3 line)
Parameters
polylineGeoPolyline3lineGeoLine3
Returns
CollidesWith(GeoPolyline3, GeoLine3, Tolerance)
Determines whether a straight chain touches a segment, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoLine3 line, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
lineGeoLine3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoRay3)
Determines whether a straight chain touches a ray.
public static bool CollidesWith(GeoPolyline3 polyline, GeoRay3 ray)
Parameters
polylineGeoPolyline3rayGeoRay3
Returns
CollidesWith(GeoPolyline3, GeoRay3, Tolerance)
Determines whether a straight chain touches a ray, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoRay3 ray, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
rayGeoRay3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoArc3)
Determines whether a straight chain touches an arc.
public static bool CollidesWith(GeoPolyline3 polyline, GeoArc3 arc)
Parameters
polylineGeoPolyline3arcGeoArc3
Returns
CollidesWith(GeoPolyline3, GeoArc3, Tolerance)
Determines whether a straight chain touches an arc, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoArc3 arc, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
arcGeoArc3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoCircle3)
Determines whether a straight chain touches a circle.
public static bool CollidesWith(GeoPolyline3 polyline, GeoCircle3 circle)
Parameters
polylineGeoPolyline3circleGeoCircle3
Returns
CollidesWith(GeoPolyline3, GeoCircle3, Tolerance)
Determines whether a straight chain touches a circle, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoCircle3 circle, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
circleGeoCircle3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoTriangle3)
Determines whether a straight chain touches a triangle.
public static bool CollidesWith(GeoPolyline3 polyline, GeoTriangle3 triangle)
Parameters
polylineGeoPolyline3triangleGeoTriangle3
Returns
CollidesWith(GeoPolyline3, GeoTriangle3, Tolerance)
Determines whether a straight chain touches a triangle, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoTriangle3 triangle, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
triangleGeoTriangle3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoPolygon3)
Determines whether a straight chain touches a polygon.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPolygon3 polygon)
Parameters
polylineGeoPolyline3polygonGeoPolygon3
Returns
CollidesWith(GeoPolyline3, GeoPolygon3, Tolerance)
Determines whether a straight chain touches a polygon, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
polygonGeoPolygon3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoFace3)
Determines whether a straight chain touches a face.
public static bool CollidesWith(GeoPolyline3 polyline, GeoFace3 face)
Parameters
polylineGeoPolyline3faceGeoFace3
Returns
CollidesWith(GeoPolyline3, GeoFace3, Tolerance)
Determines whether a straight chain touches a face, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoFace3 face, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
faceGeoFace3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoObb3)
Determines whether a straight chain touches a box.
public static bool CollidesWith(GeoPolyline3 polyline, GeoObb3 box)
Parameters
polylineGeoPolyline3boxGeoObb3
Returns
CollidesWith(GeoPolyline3, GeoObb3, Tolerance)
Determines whether a straight chain touches a box, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoObb3 box, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
boxGeoObb3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoAabb3)
Determines whether a straight chain touches a square box.
public static bool CollidesWith(GeoPolyline3 polyline, GeoAabb3 box)
Parameters
polylineGeoPolyline3boxGeoAabb3
Returns
CollidesWith(GeoPolyline3, GeoAabb3, Tolerance)
Determines whether a straight chain touches a square box, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoAabb3 box, Tolerance tolerance)
Parameters
polylineGeoPolyline3The chain.
boxGeoAabb3The shape to test against.
toleranceToleranceThe tolerance.
Returns
- bool
true when any of its segments touches; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, GeoPolyline3)
Determines whether two straight chains touch.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPolyline3 other)
Parameters
polylineGeoPolyline3otherGeoPolyline3
Returns
CollidesWith(GeoPolyline3, GeoPolyline3, Tolerance)
Determines whether two straight chains touch, within a tolerance.
public static bool CollidesWith(GeoPolyline3 polyline, GeoPolyline3 other, Tolerance tolerance)
Parameters
polylineGeoPolyline3The first chain.
otherGeoPolyline3The second chain.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere, whether at a place or along a length; otherwise, false.
Remarks
Two segments lying along each other meet along a length and cross nowhere, so this is not the crossing test with the place thrown away.
Exceptions
- ArgumentNullException
Thrown when either chain is null.
CollidesWith(GeoRay3, GeoSolid3)
Determines whether a ray starts inside a solid or runs into it.
public static bool CollidesWith(GeoRay3 ray, GeoSolid3 solid)
Parameters
Returns
CollidesWith(GeoRay3, GeoSolid3, Tolerance)
Determines whether a ray starts inside a solid or runs into it, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
Remarks
A ray leaving from inside the body never crosses its surface on the way out of nothing, so where it starts is asked before any face is tried.
CollidesWith(GeoLine3, GeoLine3)
Determines whether two segments touch.
public static bool CollidesWith(GeoLine3 line1, GeoLine3 line2)
Parameters
Returns
CollidesWith(GeoLine3, GeoLine3, Tolerance)
Determines whether two segments touch, within a tolerance.
public static bool CollidesWith(GeoLine3 line1, GeoLine3 line2, Tolerance tolerance)
Parameters
line1GeoLine3The first segment.
line2GeoLine3The second segment.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet, whether at a point or along a length; false when they are apart or skew.
CollidesWith(GeoLine3, GeoRay3)
Determines whether a segment touches a ray.
public static bool CollidesWith(GeoLine3 line, GeoRay3 ray)
Parameters
Returns
CollidesWith(GeoLine3, GeoRay3, Tolerance)
Determines whether a segment touches a ray, within a tolerance.
public static bool CollidesWith(GeoLine3 line, GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
- bool
true when they meet, whether at a point or along a length; otherwise, false.
CollidesWith(GeoRay3, GeoLine3)
Determines whether a ray touches a segment.
public static bool CollidesWith(GeoRay3 ray, GeoLine3 line)
Parameters
Returns
CollidesWith(GeoRay3, GeoLine3, Tolerance)
Determines whether a ray touches a segment, within a tolerance.
public static bool CollidesWith(GeoRay3 ray, GeoLine3 line, Tolerance tolerance)
Parameters
Returns
- bool
true when they meet, whether at a point or along a length; otherwise, false.