Text this: Fast computation of weighted distance functions and geodesic on implicit hyper-surfaces