Class: GenericCollisionChecker

Grape2D. GenericCollisionChecker

new GenericCollisionChecker()

This implements generic methods of the collision checker. Since from algorithm to algorithm only a few methods may be different. So only methods envolving polygons should be refined.
Source:

Methods

aabbVsAabb()

Source:

aabbVsCircle()

Source:

aabbVsPoint()

Source:

aabbVsPolygon()

Must be refined.
Source:

aabbVsRay()

Must be refined.
Source:

circleVsAabb()

Source:

circleVsCircle()

Source:

circleVsPoint()

Source:

circleVsPolygon()

Naive implementation.
Source:

circleVsRay()

Must be refined.
Source:

polygonVsAabb()

Source:

polygonVsCircle()

Source:

polygonVsPoint()

Algorithm based upon Walfram's Demonstration project. http://demonstrations.wolfram.com/AnEfficientTestForAPointToBeInAConvexPolygon/
Source:

polygonVsPolygon()

Must be refined.
Source:

polygonVsRay()

Must be refined.
Source: