Added point collision detection.

Added point collision detection that works for complex polygons and
triangles. Check documentation for its formula.