https://medium.com/@monocosmo77/working-with-signed-distance-in-machine-learning-research-part2-bf5add3f8ceb