Table of Contents

Class Collision2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Whether a straight shape touches or overlaps one that curves.

public static class Collision2
Inheritance
Collision2
Inherited Members

Remarks

The rule is the one used everywhere else in this class: two shapes collide when their boundaries meet, or when one lies inside the other and the two never cross at all. A polygon, a rectangle and a circle are closed and so have an inside; a segment, a polyline and an arc do not, so for those nothing but a meeting counts. Two shapes meet where they cross or come within the point tolerance of each other, measured edge by edge along the arcs.

Methods

CollidesWith(GeoArc2, GeoArc2)

Determines whether an arc touches another arc.

CollidesWith(GeoArc2, GeoArc2, Tolerance)

Determines whether an arc touches another arc, within a tolerance.

CollidesWith(GeoCircle2, GeoArc2)

Determines whether a circle touches or overlaps an arc.

CollidesWith(GeoCircle2, GeoArc2, Tolerance)

Determines whether a circle touches or overlaps an arc, within a tolerance.

CollidesWith(GeoCircle2, GeoCircle2)

Checks whether two circles collide or overlap using default tolerance.

CollidesWith(GeoCircle2, GeoCircle2, Tolerance)

Checks whether two circles collide or overlap within tolerance.

CollidesWith(GeoCircle2, GeoLine2)

Checks whether a circle collides with a line segment using default tolerance.

CollidesWith(GeoCircle2, GeoLine2, Tolerance)

Checks whether a circle collides with a line segment within tolerance.

CollidesWith(GeoCircle2, GeoPolygon2)

Checks whether a circle collides with a polygon using default tolerance.

CollidesWith(GeoCircle2, GeoPolygon2, Tolerance)

Checks whether a circle collides with a polygon within tolerance.

CollidesWith(GeoCircle2, GeoPolyline2)

Checks whether a circle collides with a polyline using default tolerance.

CollidesWith(GeoCircle2, GeoPolyline2, Tolerance)

Checks whether a circle collides with a polyline within tolerance.

CollidesWith(GeoCircle2, GeoRay2)

Checks whether a ray starts inside a circle or runs into it, using the default tolerance.

CollidesWith(GeoCircle2, GeoRay2, Tolerance)

Checks whether a ray starts inside a circle or runs into it, within a tolerance.

CollidesWith(GeoCircle2, GeoRectangle2)

Checks whether a circle collides with a rotated rectangle using default tolerance.

CollidesWith(GeoCircle2, GeoRectangle2, Tolerance)

Checks whether a circle collides with a rotated rectangle within tolerance.

CollidesWith(GeoLine2, GeoArc2)

Determines whether a segment touches an arc.

CollidesWith(GeoLine2, GeoArc2, Tolerance)

Determines whether a segment touches an arc, within a tolerance.

CollidesWith(GeoLine2, GeoLine2)

Checks whether two line segments collide / intersect using default tolerance.

CollidesWith(GeoLine2, GeoLine2, Tolerance)

Checks whether two line segments collide / intersect within tolerance.

CollidesWith(GeoLine2, GeoRay2)

Checks whether a line segment touches a ray, using the default tolerance: the same answer as CollidesWith(GeoRay2, GeoLine2).

CollidesWith(GeoLine2, GeoRay2, Tolerance)

Checks whether a line segment touches a ray, within a tolerance: the same answer as CollidesWith(GeoRay2, GeoLine2, Tolerance).

CollidesWith(GeoPolygon2, GeoArc2)

Determines whether a polygon touches or overlaps an arc.

CollidesWith(GeoPolygon2, GeoArc2, Tolerance)

Determines whether a polygon touches or overlaps an arc, within a tolerance.

CollidesWith(GeoPolygon2, GeoLine2)

Checks whether a polygon collides with a line segment using default tolerance.

CollidesWith(GeoPolygon2, GeoLine2, Tolerance)

Checks whether a polygon collides with a line segment within tolerance.

CollidesWith(GeoPolygon2, GeoPolygon2)

Checks whether two polygons collide using default tolerance.

CollidesWith(GeoPolygon2, GeoPolygon2, Tolerance)

Checks whether two polygons collide within tolerance.

CollidesWith(GeoPolygon2, GeoRay2)

Checks whether a ray starts inside a polygon or runs into it, using the default tolerance.

CollidesWith(GeoPolygon2, GeoRay2, Tolerance)

Checks whether a ray starts inside a polygon, runs into it, or passes within the point tolerance of it, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoArc2)

Determines whether a loop that may curve touches or overlaps an arc.

CollidesWith(GeoPolygonArc2, GeoArc2, Tolerance)

Determines whether a loop that may curve touches or overlaps an arc, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoCircle2)

Determines whether a loop that may curve touches or overlaps a circle.

CollidesWith(GeoPolygonArc2, GeoCircle2, Tolerance)

Determines whether a loop that may curve touches or overlaps a circle, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoLine2)

Determines whether a loop that may curve touches or overlaps a straight segment.

CollidesWith(GeoPolygonArc2, GeoLine2, Tolerance)

Determines whether a loop that may curve touches or overlaps a straight segment, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoPolygon2)

Determines whether a loop that may curve touches or overlaps a straight loop.

CollidesWith(GeoPolygonArc2, GeoPolygon2, Tolerance)

Determines whether a loop that may curve touches or overlaps a straight loop, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoPolygonArc2)

Determines whether a loop that may curve touches or overlaps a loop that may curve.

CollidesWith(GeoPolygonArc2, GeoPolygonArc2, Tolerance)

Determines whether a loop that may curve touches or overlaps a loop that may curve, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoPolyline2)

Determines whether a loop that may curve touches or overlaps a straight chain.

CollidesWith(GeoPolygonArc2, GeoPolyline2, Tolerance)

Determines whether a loop that may curve touches or overlaps a straight chain, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoPolylineArc2)

Determines whether a loop that may curve touches or overlaps a chain that may curve.

CollidesWith(GeoPolygonArc2, GeoPolylineArc2, Tolerance)

Determines whether a loop that may curve touches or overlaps a chain that may curve, within a tolerance.

CollidesWith(GeoPolygonArc2, GeoRay2)

Checks whether a ray starts inside a curved loop or runs into it, using the default tolerance.

CollidesWith(GeoPolygonArc2, GeoRay2, Tolerance)

Checks whether a ray starts inside a curved loop or runs into it, within a tolerance.

CollidesWith(GeoPolyline2, GeoArc2)

Determines whether a polyline touches an arc.

CollidesWith(GeoPolyline2, GeoArc2, Tolerance)

Determines whether a polyline touches an arc, within a tolerance.

CollidesWith(GeoPolyline2, GeoLine2)

Checks whether a polyline collides with a line segment using default tolerance.

CollidesWith(GeoPolyline2, GeoLine2, Tolerance)

Checks whether a polyline collides with a line segment within tolerance.

CollidesWith(GeoPolyline2, GeoPolygon2)

Checks whether a polyline collides with a polygon using default tolerance.

CollidesWith(GeoPolyline2, GeoPolygon2, Tolerance)

Checks whether a polyline collides with a polygon within tolerance.

CollidesWith(GeoPolyline2, GeoPolyline2)

Checks whether two polylines collide using default tolerance.

CollidesWith(GeoPolyline2, GeoPolyline2, Tolerance)

Checks whether two polylines collide within tolerance.

CollidesWith(GeoPolyline2, GeoRay2)

Checks whether a ray touches a polyline, using the default tolerance.

CollidesWith(GeoPolyline2, GeoRay2, Tolerance)

Checks whether a ray touches a polyline, within a tolerance.

CollidesWith(GeoPolyline2, GeoRectangle2)

Checks whether a polyline collides with a rectangle using default tolerance.

CollidesWith(GeoPolyline2, GeoRectangle2, Tolerance)

Checks whether a polyline collides with a rectangle within tolerance.

CollidesWith(GeoPolylineArc2, GeoArc2)

Determines whether a chain that may curve touches or overlaps an arc.

CollidesWith(GeoPolylineArc2, GeoArc2, Tolerance)

Determines whether a chain that may curve touches or overlaps an arc, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoCircle2)

Determines whether a chain that may curve touches or overlaps a circle.

CollidesWith(GeoPolylineArc2, GeoCircle2, Tolerance)

Determines whether a chain that may curve touches or overlaps a circle, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoLine2)

Determines whether a chain that may curve touches or overlaps a straight segment.

CollidesWith(GeoPolylineArc2, GeoLine2, Tolerance)

Determines whether a chain that may curve touches or overlaps a straight segment, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoPolygon2)

Determines whether a chain that may curve touches or overlaps a straight loop.

CollidesWith(GeoPolylineArc2, GeoPolygon2, Tolerance)

Determines whether a chain that may curve touches or overlaps a straight loop, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoPolygonArc2)

Determines whether a chain that may curve touches or overlaps a loop that may curve.

CollidesWith(GeoPolylineArc2, GeoPolygonArc2, Tolerance)

Determines whether a chain that may curve touches or overlaps a loop that may curve, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoPolyline2)

Determines whether a chain that may curve touches or overlaps a straight chain.

CollidesWith(GeoPolylineArc2, GeoPolyline2, Tolerance)

Determines whether a chain that may curve touches or overlaps a straight chain, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoPolylineArc2)

Determines whether a chain that may curve touches or overlaps a chain that may curve.

CollidesWith(GeoPolylineArc2, GeoPolylineArc2, Tolerance)

Determines whether a chain that may curve touches or overlaps a chain that may curve, within a tolerance.

CollidesWith(GeoPolylineArc2, GeoRay2)

Checks whether a ray touches a curved chain, using the default tolerance.

CollidesWith(GeoPolylineArc2, GeoRay2, Tolerance)

Checks whether a ray touches a curved chain, within a tolerance.

CollidesWith(GeoRay2, GeoArc2)

Checks whether a ray touches an arc, using the default tolerance.

CollidesWith(GeoRay2, GeoArc2, Tolerance)

Checks whether a ray touches an arc, within a tolerance.

CollidesWith(GeoRay2, GeoLine2)

Checks whether a ray touches a line segment, using the default tolerance.

CollidesWith(GeoRay2, GeoLine2, Tolerance)

Checks whether a ray touches a line segment, within a tolerance.

CollidesWith(GeoRay2, GeoRay2)

Checks whether two rays touch, using the default tolerance.

CollidesWith(GeoRay2, GeoRay2, Tolerance)

Checks whether two rays touch, within a tolerance.

CollidesWith(GeoRectangle2, GeoArc2)

Determines whether a rectangle touches or overlaps an arc.

CollidesWith(GeoRectangle2, GeoArc2, Tolerance)

Determines whether a rectangle touches or overlaps an arc, within a tolerance.

CollidesWith(GeoRectangle2, GeoLine2)

Checks whether a rectangle collides with a line segment using default tolerance.

CollidesWith(GeoRectangle2, GeoLine2, Tolerance)

Checks whether a rectangle collides with a line segment within tolerance.

CollidesWith(GeoRectangle2, GeoPolygon2)

Checks whether a rectangle collides with a polygon using default tolerance.

CollidesWith(GeoRectangle2, GeoPolygon2, Tolerance)

Checks whether a rectangle collides with a polygon within tolerance.

CollidesWith(GeoRectangle2, GeoPolygonArc2)

Determines whether a rectangle touches or overlaps a loop that may curve.

CollidesWith(GeoRectangle2, GeoPolygonArc2, Tolerance)

Determines whether a rectangle touches or overlaps a loop that may curve, within a tolerance.

CollidesWith(GeoRectangle2, GeoPolylineArc2)

Determines whether a rectangle touches or overlaps a chain that may curve.

CollidesWith(GeoRectangle2, GeoPolylineArc2, Tolerance)

Determines whether a rectangle touches or overlaps a chain that may curve, within a tolerance.

CollidesWith(GeoRectangle2, GeoRay2)

Checks whether a ray starts inside a rectangle or runs into it, using the default tolerance.

CollidesWith(GeoRectangle2, GeoRay2, Tolerance)

Checks whether a ray starts inside a rectangle, runs into it, or passes within the point tolerance of it, within a tolerance.

CollidesWith(GeoRectangle2, GeoRectangle2)

Checks whether two rotated rectangles (GeoRectangle2 OBB) collide using default tolerance.

CollidesWith(GeoRectangle2, GeoRectangle2, Tolerance)

Checks whether two rotated rectangles (GeoRectangle2 OBB) collide using the Separating Axis Theorem (SAT).