the function point distance is added to file 'collision.cpp'
the function 'triangle area' is added to file 'colllision.cpp'