Table of Contents

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

ellipse GeoEllipse3
plane GeoPlane3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

plane GeoPlane3

The plane.

tolerance Tolerance

The 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

ellipse GeoEllipse3
line GeoLine3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

line GeoLine3

The segment.

tolerance Tolerance

The 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

ellipse GeoEllipse3
ray GeoRay3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

ray GeoRay3

The ray.

tolerance Tolerance

The 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

ellipse GeoEllipse3
arc GeoArc3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

arc GeoArc3

The arc.

tolerance Tolerance

The 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

ellipse GeoEllipse3
circle GeoCircle3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

circle GeoCircle3

The circle.

tolerance Tolerance

The 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

ellipse GeoEllipse3
other GeoEllipse3

Returns

bool

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

ellipse GeoEllipse3

The first ellipse.

other GeoEllipse3

The other ellipse.

tolerance Tolerance

The 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

ellipse GeoEllipse3
triangle GeoTriangle3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The 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

ellipse GeoEllipse3
polygon GeoPolygon3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The 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

ellipse GeoEllipse3
face GeoFace3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

face GeoFace3

The face.

tolerance Tolerance

The 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

ellipse GeoEllipse3
solid GeoSolid3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

solid GeoSolid3

The solid.

tolerance Tolerance

The 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

ellipse GeoEllipse3
box GeoObb3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

box GeoObb3

The box.

tolerance Tolerance

The 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

ellipse GeoEllipse3
box GeoAabb3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

box GeoAabb3

The box; an empty one is touched by nothing.

tolerance Tolerance

The 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

ellipse GeoEllipse3
edge GeoEdge3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

edge GeoEdge3

The edge.

tolerance Tolerance

The tolerance.

Returns

bool

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

ellipse GeoEllipse3
chain GeoPolylineArc3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

chain GeoPolylineArc3

The curved chain.

tolerance Tolerance

The 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

ellipse GeoEllipse3
loop GeoPolygonArc3

Returns

bool

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

ellipse GeoEllipse3

The ellipse.

loop GeoPolygonArc3

The curved loop.

tolerance Tolerance

The 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.