collidex v0.1.0 API Reference
Modules
Usage
Detect collisions (or not) between pairs of circles
Handles detection of collisions between disparate shapes. (i.e. Rects and Circles, Rects and Polygons, Polygons and Circles)
Detects collisions between polygons using the separating axis theorem. Has two variants, :fast and :accurate. :fast will miss a few rare tyes of collisions but is much faster
This module tests for collisions between pairs of grid-aligned rectangles
Main module responsible for detecting whether two particular pieces of geometry have collided. All actual detections are delegated to functions in Collidex.Detection.* modules; this module effectively just routes geometry to the correct detection function
Struct to represent perfect circles
An n-sided polygon
Struct to represent grid-aligned rectangles as a pair of points (A and B)
This module defines the the behavior common to all shapes used by the collision engine
Assorted utilities and geometric transformations