"final" version of distance check function
Merge branch 'master' of https://github.com/SoufianLemkaddem/GeometryDistance