Method CollidesWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
CollidesWith(GeoTriangle3)
Checks whether this triangle touches another triangle, using the default tolerance.
public bool CollidesWith(GeoTriangle3 other)
Parameters
otherGeoTriangle3
Returns
CollidesWith(GeoTriangle3, Tolerance)
Checks whether this triangle touches another triangle, within a tolerance.
public bool CollidesWith(GeoTriangle3 other, Tolerance tolerance)
Parameters
otherGeoTriangle3toleranceTolerance
Returns
CollidesWith(GeoLine3)
Checks whether this triangle touches a segment, using the default tolerance.
public bool CollidesWith(GeoLine3 line)
Parameters
lineGeoLine3
Returns
CollidesWith(GeoLine3, Tolerance)
Checks whether this triangle touches a segment, within a tolerance.
public bool CollidesWith(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoRay3)
Checks whether a ray runs into this triangle, using the default tolerance.
public bool CollidesWith(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
CollidesWith(GeoRay3, Tolerance)
Checks whether a ray runs into this triangle, within a tolerance.
public bool CollidesWith(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoArc3)
Checks whether this triangle touches an arc, using the default tolerance.
public bool CollidesWith(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
CollidesWith(GeoArc3, Tolerance)
Checks whether this triangle touches an arc, within a tolerance.
public bool CollidesWith(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoCircle3)
Checks whether this triangle touches a circle, using the default tolerance.
public bool CollidesWith(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
CollidesWith(GeoCircle3, Tolerance)
Checks whether this triangle touches a circle, within a tolerance.
public bool CollidesWith(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
CollidesWith(GeoEdge3)
Checks whether this triangle touches an edge.
public bool CollidesWith(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
CollidesWith(GeoEdge3, Tolerance)
Checks whether this triangle touches an edge, within a tolerance.
public bool CollidesWith(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoPolylineArc3)
Checks whether this triangle touches a curved chain.
public bool CollidesWith(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3The curved chain.
Returns
CollidesWith(GeoPolylineArc3, Tolerance)
Checks whether this triangle touches a curved chain, within a tolerance.
public bool CollidesWith(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3The curved chain.
toleranceToleranceThe tolerance.
Returns
CollidesWith(GeoPolygonArc3)
Checks whether this triangle touches a curved loop.
public bool CollidesWith(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3The curved loop.
Returns
CollidesWith(GeoPolygonArc3, Tolerance)
Checks whether this triangle touches a curved loop, within a tolerance.
public bool CollidesWith(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance.
Returns
CollidesWith(GeoPolyline3)
Checks whether this triangle touches a straight chain: the same answer as CollidesWith(GeoTriangle3).
public bool CollidesWith(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, Tolerance)
Checks whether this triangle touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoTriangle3, Tolerance).
public bool CollidesWith(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolygon3)
Checks whether this triangle and a polygon touch: the same answer as CollidesWith(GeoTriangle3, GeoPolygon3).
public bool CollidesWith(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3The polygon.
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 (50, 50, 0) and (0, 50, 0).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoPolygon3, Tolerance)
Checks whether this triangle and a polygon touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoPolygon3, Tolerance).
public bool CollidesWith(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
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 (50, 50, 0) and (0, 50, 0).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoFace3)
Checks whether this triangle and the material of a face touch: the same answer as CollidesWith(GeoTriangle3, GeoFace3).
public bool CollidesWith(GeoFace3 face)
Parameters
faceGeoFace3The face, read by its material.
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; moved 30 along X, onto the material, they do.
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoFace3, Tolerance)
Checks whether this triangle and the material of a face touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoFace3, Tolerance).
public bool CollidesWith(GeoFace3 face, Tolerance tolerance)
Parameters
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; moved 30 along X, onto the material, they do.
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoPlane3)
Checks whether this triangle touches a plane: the same answer as CollidesWith(GeoPlane3, GeoTriangle3).
public bool CollidesWith(GeoPlane3 plane)
Parameters
planeGeoPlane3The plane.
Returns
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.
CollidesWith(GeoPlane3, Tolerance)
Checks whether this triangle touches a plane, within a tolerance: the same answer as CollidesWith(GeoPlane3, GeoTriangle3, Tolerance).
public bool CollidesWith(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.
CollidesWith(GeoSolid3)
Checks whether this triangle and the material of a solid touch: the same answer as CollidesWith(GeoTriangle3, GeoSolid3).
public bool CollidesWith(GeoSolid3 solid)
Parameters
solidGeoSolid3The solid, read by its material.
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 (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50); a triangle wholly inside the box crosses nothing and touches it.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
CollidesWith(GeoSolid3, Tolerance)
Checks whether this triangle and the material of a solid touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoSolid3, Tolerance).
public bool CollidesWith(GeoSolid3 solid, Tolerance tolerance)
Parameters
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 (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50); a triangle wholly inside the box crosses nothing and touches it.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
CollidesWith(GeoObb3)
Checks whether this triangle and an oriented box touch: the same answer as CollidesWith(GeoTriangle3, GeoObb3).
public bool CollidesWith(GeoObb3 box)
Parameters
boxGeoObb3The oriented box.
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) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.
Exceptions
- ArgumentNullException
Thrown when the box is null.
CollidesWith(GeoObb3, Tolerance)
Checks whether this triangle and an oriented box touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoObb3, Tolerance).
public bool CollidesWith(GeoObb3 box, Tolerance tolerance)
Parameters
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) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.
Exceptions
- ArgumentNullException
Thrown when the box is null.
CollidesWith(GeoAabb3)
Checks whether this triangle and an axis-aligned box touch: the same answer as CollidesWith(GeoTriangle3, GeoAabb3).
public bool CollidesWith(GeoAabb3 box)
Parameters
boxGeoAabb3The axis-aligned box.
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) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.
Exceptions
- InvalidOperationException
Thrown when the box is empty.
CollidesWith(GeoAabb3, Tolerance)
Checks whether this triangle and an axis-aligned box touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoAabb3, Tolerance).
public bool CollidesWith(GeoAabb3 box, Tolerance tolerance)
Parameters
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) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.
Exceptions
- InvalidOperationException
Thrown when the box is empty.
CollidesWith(GeoSphere3)
Determines whether this triangle touches a ball, using the default tolerance.
public bool CollidesWith(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
CollidesWith(GeoSphere3, Tolerance)
Determines whether this triangle touches a ball, within a tolerance.
public bool CollidesWith(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
CollidesWith(GeoSpline3)
Determines whether this triangle touches a spline, using the default tolerance.
public bool CollidesWith(GeoSpline3 spline)
Parameters
splineGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
CollidesWith(GeoSpline3, Tolerance)
Determines whether this triangle touches a spline, within a tolerance.
public bool CollidesWith(GeoSpline3 spline, Tolerance tolerance)
Parameters
splineGeoSpline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
CollidesWith(GeoXLine3)
Determines whether this triangle touches an infinite line, using the default tolerance.
public bool CollidesWith(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
CollidesWith(GeoXLine3, Tolerance)
Determines whether this triangle touches an infinite line, within a tolerance.
public bool CollidesWith(GeoXLine3 xline, Tolerance tolerance)