# Collision
[![Build Status](](

Vector operations and collision detection for polygons.

Implements the [separating axis theorem]( for collision detection for polygons in 2D space.

Using regular polygons with an arbitrary number of sides and of an artbitrary size, can detect collisions and calculate the minimum translation vector to resolve collision.


### Under development.

+ Additional collision detection methods.
+ 3D collision detection

## Installation

If [available in Hex](, the package can be installed as:

  1. Add `collision` to your list of dependencies in `mix.exs`:

    def deps do
      [{:collision, "~> 0.1.0"}]

  2. Ensure `collision` is started before your application:

    def application do
      [applications: [:collision]]