Method CollidesWith
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
CollidesWith(GeoEllipse3, GeoPlane3)
Determines whether the rim of an ellipse in space touches a plane, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPlane3 plane)
Parameters
ellipseGeoEllipse3planeGeoPlane3
Returns
CollidesWith(GeoEllipse3, GeoPlane3, Tolerance)
Determines whether the rim of an ellipse in space touches a plane, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPlane3 plane, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
planeGeoPlane3The plane.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim crosses or touches the plane, or lies in it; otherwise, false. The ellipse 300 by 100 lying in the plan touches the plan everywhere and crosses it nowhere, so this is true where GetIntersections(GeoEllipse3, GeoPlane3, Tolerance) is empty; the plane z = 1 it does not touch.
CollidesWith(GeoEllipse3, GeoLine3)
Determines whether the rim of an ellipse in space touches a segment, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoLine3 line)
Parameters
ellipseGeoEllipse3lineGeoLine3
Returns
CollidesWith(GeoEllipse3, GeoLine3, Tolerance)
Determines whether the rim of an ellipse in space touches a segment, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoLine3 line, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
lineGeoLine3The segment.
toleranceToleranceThe tolerance.
Returns
- bool
true if the segment crosses or touches the rim; otherwise, false. The rim is what counts, not the disc: the segment from (0, 0, -10) to (0, 0, 10) passes through the middle of the ellipse 300 by 100 lying in the plan about the origin and touches nothing.
CollidesWith(GeoEllipse3, GeoRay3)
Determines whether the rim of an ellipse in space touches a ray, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoRay3 ray)
Parameters
ellipseGeoEllipse3rayGeoRay3
Returns
CollidesWith(GeoEllipse3, GeoRay3, Tolerance)
Determines whether the rim of an ellipse in space touches a ray, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoRay3 ray, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
rayGeoRay3The ray.
toleranceToleranceThe tolerance.
Returns
- bool
true if the ray crosses or touches the rim; otherwise, false, a ray through the disc alone included.
CollidesWith(GeoEllipse3, GeoArc3)
Determines whether the rim of an ellipse in space touches an arc, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoArc3 arc)
Parameters
ellipseGeoEllipse3arcGeoArc3
Returns
CollidesWith(GeoEllipse3, GeoArc3, Tolerance)
Determines whether the rim of an ellipse in space touches an arc, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoArc3 arc, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
arcGeoArc3The arc.
toleranceToleranceThe tolerance.
Returns
- bool
true if the arc crosses or touches the rim, or lies along it; otherwise, false. A quarter of the circle of radius 100 about the origin lies along the ellipse 100 by 99.9995 about the same centre, within the point tolerance of a thousandth, crosses it nowhere, and touches it.
Remarks
An arc lying on the rim crosses it nowhere and touches it all along, so where the ellipse is the arc's circle, within the tolerance, the two touch when either holds an end of the other, as two arcs of one circle do, or where the arc comes within the point tolerance of the rim anywhere else: an ellipse 100.0009 by 99.9995 leaning 8E-6 radians off the plane of the circle of radius 100 about its centre touches the arc running the long way round that circle from 0.3 radians past the end of its major axis to 0.3 short of it, whose ends lie 0.0011 off the rim and which comes within 0.00042 of it between. Asked so, a near copy whose ends stand off is searched along its rim, about half a millisecond, where the ends alone take a few microseconds.
CollidesWith(GeoEllipse3, GeoCircle3)
Determines whether the rim of an ellipse in space touches a circle, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoCircle3 circle)
Parameters
ellipseGeoEllipse3circleGeoCircle3
Returns
CollidesWith(GeoEllipse3, GeoCircle3, Tolerance)
Determines whether the rim of an ellipse in space touches a circle, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoCircle3 circle, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
circleGeoCircle3The circle.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rims cross or touch, or draw the same curve; otherwise, false. The circle of radius 50 lying in the plan about the origin is inside the ellipse 300 by 100 about it and touches nothing: the rims are what count, not the discs.
Remarks
Drawing the same curve, the two touch where either holds where the other starts, or where the rims come within the point tolerance of each other anywhere else: an ellipse 100.0009 by 99.9995 about the centre of the circle of radius 100, its major axis towards where the circle starts and leaning 8E-6 radians, stands 0.0012 off the circle at either start, comes within 0.00042 of it elsewhere, and touches it. Where neither start lies on the other, the rim is searched, which takes up to about a millisecond and a half, where the starts alone take a few microseconds.
CollidesWith(GeoEllipse3, GeoEllipse3)
Determines whether the rims of two ellipses in space touch, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoEllipse3 other)
Parameters
ellipseGeoEllipse3otherGeoEllipse3
Returns
CollidesWith(GeoEllipse3, GeoEllipse3, Tolerance)
Determines whether the rims of two ellipses in space touch, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoEllipse3 other, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The first ellipse.
otherGeoEllipse3The other ellipse.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rims cross or touch, or the two are the same ellipse; otherwise, false. The ellipse 150 by 50 lying in the plan inside the ellipse 300 by 100 about the same centre touches nothing.
Remarks
The same ellipse, as GetIntersections(GeoEllipse3, GeoEllipse3, Tolerance) reads it, touches where either holds where the other starts, or where the rims come within the point tolerance of each other anywhere else, as an ellipse and a circle drawing the same curve do, the rim searched where neither start lies on the other.
CollidesWith(GeoEllipse3, GeoTriangle3)
Determines whether the rim of an ellipse in space touches a triangle, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoTriangle3 triangle)
Parameters
ellipseGeoEllipse3triangleGeoTriangle3
Returns
CollidesWith(GeoEllipse3, GeoTriangle3, Tolerance)
Determines whether the rim of an ellipse in space touches a triangle, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoTriangle3 triangle, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim crosses or touches the triangle, or lies in its plane wholly within it; otherwise, false. The ellipse 300 by 100 lying in the plan about the origin touches the triangle (-1000, -1000, 0), (1000, -1000, 0), (0, 1000, 0) and cuts none of its edges.
CollidesWith(GeoEllipse3, GeoPolygon3)
Determines whether the rim of an ellipse in space touches a polygon, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolygon3 polygon)
Parameters
ellipseGeoEllipse3polygonGeoPolygon3
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoEllipse3, GeoPolygon3, Tolerance)
Determines whether the rim of an ellipse in space touches a polygon, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolygon3 polygon, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim crosses or touches the polygon, or lies in its plane wholly within it; otherwise, false. The square 800 by 800 about the origin in the plan holds the ellipse 300 by 100 about the same centre, and touches it.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoEllipse3, GeoFace3)
Determines whether the rim of an ellipse in space touches a face, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoFace3 face)
Parameters
ellipseGeoEllipse3faceGeoFace3
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoEllipse3, GeoFace3, Tolerance)
Determines whether the rim of an ellipse in space touches a face, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoFace3 face, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
faceGeoFace3The face.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim crosses or touches the material, or lies in the face's plane wholly within it; otherwise, false. The material is what counts: a rim lying wholly in a hole, or passing down one, touches nothing.
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoEllipse3, GeoSolid3)
Determines whether the rim of an ellipse in space touches a solid, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoSolid3 solid)
Parameters
ellipseGeoEllipse3solidGeoSolid3
Returns
Exceptions
- ArgumentNullException
Thrown when the solid is null.
CollidesWith(GeoEllipse3, GeoSolid3, Tolerance)
Determines whether the rim of an ellipse in space touches a solid, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoSolid3 solid, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
solidGeoSolid3The solid.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim lies in the material or crosses its surface; otherwise, false. The ellipse 30 by 10 lying in the plan about the centre of a box 200 by 200 by 200 crosses no face and touches it.
Remarks
Where the rim starts is asked before any face is tried, because a rim inside the body crosses its surface nowhere and is in it all the same. The same question keeps a rim inside an opening out: an opening is not material.
Exceptions
- ArgumentNullException
Thrown when the solid is null.
CollidesWith(GeoEllipse3, GeoObb3)
Determines whether the rim of an ellipse in space touches an oriented box, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoObb3 box)
Parameters
ellipseGeoEllipse3boxGeoObb3
Returns
CollidesWith(GeoEllipse3, GeoObb3, Tolerance)
Determines whether the rim of an ellipse in space touches an oriented box, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoObb3 box, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
boxGeoObb3The box.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim lies inside the box or meets one of its faces; otherwise, false.
Remarks
A rim wholly inside the box crosses no face and is in it all the same, so where it starts is asked before any face is tried.
CollidesWith(GeoEllipse3, GeoAabb3)
Determines whether the rim of an ellipse in space touches an axis-aligned box, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoAabb3 box)
Parameters
ellipseGeoEllipse3boxGeoAabb3
Returns
CollidesWith(GeoEllipse3, GeoAabb3, Tolerance)
Determines whether the rim of an ellipse in space touches an axis-aligned box, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoAabb3 box, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
boxGeoAabb3The box; an empty one is touched by nothing.
toleranceToleranceThe tolerance.
Returns
- bool
true if the rim lies inside the box or meets one of its faces; otherwise, false.
CollidesWith(GeoEllipse3, GeoEdge3)
Determines whether the rim of an ellipse in space touches an edge, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoEdge3 edge)
Parameters
ellipseGeoEllipse3edgeGeoEdge3
Returns
CollidesWith(GeoEllipse3, GeoEdge3, Tolerance)
Determines whether the rim of an ellipse in space touches an edge, within a tolerance: as a segment or as an arc, whichever the edge is.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoEdge3 edge, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
edgeGeoEdge3The edge.
toleranceToleranceThe tolerance.
Returns
CollidesWith(GeoEllipse3, GeoPolylineArc3)
Determines whether the rim of an ellipse in space touches a curved chain, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolylineArc3 chain)
Parameters
ellipseGeoEllipse3chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
CollidesWith(GeoEllipse3, GeoPolylineArc3, Tolerance)
Determines whether the rim of an ellipse in space touches a curved chain, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
chainGeoPolylineArc3The curved chain.
toleranceToleranceThe tolerance.
Returns
- bool
true if any edge of the chain touches the rim; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
CollidesWith(GeoEllipse3, GeoPolygonArc3)
Determines whether the rim of an ellipse in space touches a curved loop, using the default tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolygonArc3 loop)
Parameters
ellipseGeoEllipse3loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
CollidesWith(GeoEllipse3, GeoPolygonArc3, Tolerance)
Determines whether the rim of an ellipse in space touches a curved loop, within a tolerance.
public static bool CollidesWith(GeoEllipse3 ellipse, GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The ellipse.
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance.
Returns
- bool
true if any edge of the loop touches the rim; otherwise, false: the loop is read as its edges, as a circle reads it.
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.