utils.h

libPathFinder / Docs / Headers / 

Defines various utility functions and templates.

Defines functions for testing collisions between circles, lines and rectangles, in all possible combinations.

Also defines functions for finding the distance between the above mentioned geometric types.

A template class for holding 2-dimensional coordinates is also included.

This template class takes the coordinate type as a parameter, and only defines a constructor (x, y) apart from the actual coordinates.

Can be used to define a coordinate for any map type using:

coordinate < map::coord_type >