Method CollidesWith
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
CollidesWith(GeoFace2, GeoLine2)
Determines whether a segment reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoLine2 line)
Parameters
Returns
CollidesWith(GeoFace2, GeoLine2, Tolerance)
Determines whether a segment reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoLine2 line, Tolerance tolerance)
Parameters
Returns
Remarks
The segment collides where it crosses a rim, lies on the material, or comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole. At a tolerance of a thousandth, the segment from (41, 58) to (50, 59.9995), in the hole from (40, 40) to (60, 60) of the square 100 by 100, reaches the material half a thousandth below the hole's top.
CollidesWith(GeoFace2, GeoArc2)
Determines whether a arc reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoArc2 arc)
Parameters
Returns
CollidesWith(GeoFace2, GeoArc2, Tolerance)
Determines whether a arc reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
Remarks
The arc collides where it crosses a rim, lies on the material, or comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole. At a tolerance of a thousandth, an arc ending half a thousandth above the top of the square 100 by 100 collides with it, and one ending two thousandths above does not.
CollidesWith(GeoFace2, GeoCircle2)
Determines whether a circle reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoCircle2 circle)
Parameters
faceGeoFace2circleGeoCircle2
Returns
CollidesWith(GeoFace2, GeoCircle2, Tolerance)
Determines whether a circle reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoCircle2 circle, Tolerance tolerance)
Parameters
faceGeoFace2circleGeoCircle2toleranceTolerance
Returns
Remarks
The circle, read as its disc, collides where it reaches the material or comes within the point tolerance of a rim, a hole's from within the hole included.
CollidesWith(GeoFace2, GeoRectangle2)
Determines whether a rectangle reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoRectangle2 rect)
Parameters
faceGeoFace2rectGeoRectangle2
Returns
CollidesWith(GeoFace2, GeoRectangle2, Tolerance)
Determines whether a rectangle reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoRectangle2 rect, Tolerance tolerance)
Parameters
faceGeoFace2rectGeoRectangle2toleranceTolerance
Returns
Remarks
The rectangle collides where it crosses a rim, where its material and the face's overlap, or where it comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole.
CollidesWith(GeoFace2, GeoPolyline2)
Determines whether a polyline reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoPolyline2 polyline)
Parameters
faceGeoFace2polylineGeoPolyline2
Returns
CollidesWith(GeoFace2, GeoPolyline2, Tolerance)
Determines whether a polyline reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoPolyline2 polyline, Tolerance tolerance)
Parameters
faceGeoFace2polylineGeoPolyline2toleranceTolerance
Returns
Remarks
The polyline collides where it crosses a rim, lies on the material, or comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole.
CollidesWith(GeoFace2, GeoPolygon2)
Determines whether a polygon reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoPolygon2 polygon)
Parameters
faceGeoFace2polygonGeoPolygon2
Returns
CollidesWith(GeoFace2, GeoPolygon2, Tolerance)
Determines whether a polygon reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoPolygon2 polygon, Tolerance tolerance)
Parameters
faceGeoFace2polygonGeoPolygon2toleranceTolerance
Returns
Remarks
The polygon collides where it crosses a rim, where its material and the face's overlap, or where it comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole.
CollidesWith(GeoFace2, GeoPolygonArc2)
Determines whether a curved loop reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoPolygonArc2 loop)
Parameters
faceGeoFace2loopGeoPolygonArc2
Returns
CollidesWith(GeoFace2, GeoPolygonArc2, Tolerance)
Determines whether a curved loop reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
faceGeoFace2loopGeoPolygonArc2toleranceTolerance
Returns
Remarks
The loop collides where it crosses a rim, where its material and the face's overlap, or where it comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole.
CollidesWith(GeoFace2, GeoPolylineArc2)
Determines whether a curved chain reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoPolylineArc2 chain)
Parameters
faceGeoFace2chainGeoPolylineArc2
Returns
CollidesWith(GeoFace2, GeoPolylineArc2, Tolerance)
Determines whether a curved chain reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
faceGeoFace2chainGeoPolylineArc2toleranceTolerance
Returns
Remarks
The chain collides where it crosses a rim, lies on the material, or comes within the point tolerance of a rim, the outline from outside or a hole's from within the hole.
CollidesWith(GeoFace2, GeoFace2)
Determines whether the materials of two faces meet.
public static bool CollidesWith(GeoFace2 face, GeoFace2 other)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when either face is null.
CollidesWith(GeoFace2, GeoFace2, Tolerance)
Determines whether the materials of two faces meet, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoFace2 other, Tolerance tolerance)
Parameters
Returns
- bool
true if the two overlap or touch, one lying on the other's material included; false where they are apart, and where one lies wholly in a hole of the other. A square 20 by 20 about (50, 50) does not collide with the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle; about (15, 50) it does.
Remarks
The other face is the probe, asked as a polygon is: it has to reach the outline, through CollidesWith(GeoFace2, GeoPolygon2, Tolerance), and no hole may hold it whole. A face that crosses no rim of a hole lies wholly inside it, wholly outside it, or holds it, and the first is told by a corner of the probe's outline falling inside the hole while the probe's material does not hold a corner of the hole. No boolean is made.
Exceptions
- ArgumentNullException
Thrown when either face is null.
CollidesWith(GeoFace2, GeoRay2)
Determines whether a ray reaches the material of a face.
public static bool CollidesWith(GeoFace2 face, GeoRay2 ray)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoFace2, GeoRay2, Tolerance)
Determines whether a ray reaches the material of a face, within a tolerance.
public static bool CollidesWith(GeoFace2 face, GeoRay2 ray, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.