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