Created in C++11 for 2d game collision.