Method CollidesWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
CollidesWith(GeoLine3)
Determines whether this solid touches or overlaps a line segment.
public bool CollidesWith(GeoLine3 line)
Parameters
lineGeoLine3
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoLine3, Tolerance)
Determines whether this solid touches or overlaps a line segment, within a tolerance.
public bool CollidesWith(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoPolyline3)
Determines whether this solid touches or overlaps a polyline.
public bool CollidesWith(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoPolyline3, Tolerance)
Determines whether this solid touches or overlaps a polyline, within a tolerance.
public bool CollidesWith(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoPolygon3)
Determines whether this solid touches or overlaps a polygon.
public bool CollidesWith(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoPolygon3, Tolerance)
Determines whether this solid touches or overlaps a polygon, within a tolerance.
public bool CollidesWith(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3toleranceTolerance
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoFace3)
Determines whether this solid touches or overlaps a face.
public bool CollidesWith(GeoFace3 face)
Parameters
faceGeoFace3
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoFace3, Tolerance)
Determines whether this solid touches or overlaps a face, within a tolerance.
public bool CollidesWith(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoObb3)
Determines whether this solid touches or overlaps an oriented box.
public bool CollidesWith(GeoObb3 box)
Parameters
boxGeoObb3
Returns
CollidesWith(GeoObb3, Tolerance)
Determines whether this solid touches or overlaps an oriented box, within a tolerance.
public bool CollidesWith(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoSolid3)
Determines whether this solid touches or overlaps another solid.
public bool CollidesWith(GeoSolid3 other)
Parameters
otherGeoSolid3
Returns
CollidesWith(GeoSolid3, Tolerance)
Determines whether this solid touches or overlaps another solid, within a tolerance.
public bool CollidesWith(GeoSolid3 other, Tolerance tolerance)
Parameters
Returns
Remarks
One body sitting wholly inside the other counts as touching, even where no two faces meet.
CollidesWith(GeoRay3)
Determines whether this solid is reached by a ray.
public bool CollidesWith(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoRay3, Tolerance)
Determines whether this solid is reached by a ray, within a tolerance.
public bool CollidesWith(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
Remarks
Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoAabb3)
Checks whether this solid touches an axis-aligned box, using the default tolerance.
public bool CollidesWith(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
CollidesWith(GeoAabb3, Tolerance)
Checks whether this solid touches an axis-aligned box, within a tolerance.
public bool CollidesWith(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoArc3)
Checks whether this solid touches an arc, using the default tolerance.
public bool CollidesWith(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
CollidesWith(GeoArc3, Tolerance)
Checks whether this solid touches an arc, within a tolerance.
public bool CollidesWith(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoCircle3)
Checks whether this solid touches a circle, using the default tolerance.
public bool CollidesWith(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
CollidesWith(GeoCircle3, Tolerance)
Checks whether this solid touches a circle, within a tolerance.
public bool CollidesWith(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
CollidesWith(GeoEdge3)
Checks whether this solid touches an edge.
public bool CollidesWith(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
CollidesWith(GeoEdge3, Tolerance)
Checks whether this solid touches an edge, within a tolerance.
public bool CollidesWith(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoPolylineArc3)
Checks whether this solid touches a curved chain.
public bool CollidesWith(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3The curved chain.
Returns
CollidesWith(GeoPolylineArc3, Tolerance)
Checks whether this solid 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 solid touches a curved loop.
public bool CollidesWith(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3The curved loop.
Returns
CollidesWith(GeoPolygonArc3, Tolerance)
Checks whether this solid touches a curved loop, within a tolerance.
public bool CollidesWith(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance.
Returns
CollidesWith(GeoPlane3)
Checks whether this solid touches a plane: the same answer as CollidesWith(GeoPlane3, GeoSolid3).
public bool CollidesWith(GeoPlane3 plane)
Parameters
planeGeoPlane3The plane.
Returns
Remarks
A box 100 by 100 by 100 standing on the floor is touched by the plane z = 50 and by the plane z = 100 through its top, and missed by the plane z = 101; a body in two pieces either side of a plane does not touch it.
CollidesWith(GeoPlane3, Tolerance)
Checks whether this solid touches a plane, within a tolerance: the same answer as CollidesWith(GeoPlane3, GeoSolid3, Tolerance).
public bool CollidesWith(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A box 100 by 100 by 100 standing on the floor is touched by the plane z = 50 and by the plane z = 100 through its top, and missed by the plane z = 101; a body in two pieces either side of a plane does not touch it.
CollidesWith(GeoTriangle3)
Checks whether this solid and a triangle touch: the same answer as CollidesWith(GeoTriangle3, GeoSolid3).
public bool CollidesWith(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3The triangle.
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. Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoTriangle3, Tolerance)
Checks whether this solid and a triangle touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoSolid3, Tolerance).
public bool CollidesWith(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
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. Whether a point is in the body is asked to within rounding, a billionth of a millimetre (1E-9, not nought), so that rounding in a body turned about in space cannot lose a crossing: a point within 1E-9 outside the body reads as in it, and a point 5E-10 outside a box is nought away from it. Further out than a million the billionth is 1E-15 of the largest coordinate of the body and the point, past the rounding of numbers that size.
CollidesWith(GeoSphere3)
Determines whether this solid touches a ball, using the default tolerance.
public bool CollidesWith(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
CollidesWith(GeoSphere3, Tolerance)
Determines whether this solid touches a ball, within a tolerance.
public bool CollidesWith(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
CollidesWith(GeoSpline3)
Determines whether this solid 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 solid 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 solid touches an infinite line, using the default tolerance.
public bool CollidesWith(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
CollidesWith(GeoXLine3, Tolerance)
Determines whether this solid touches an infinite line, within a tolerance.
public bool CollidesWith(GeoXLine3 xline, Tolerance tolerance)