EDITED: didn't see your edit H&K when I posted.
PS: yes it is faster. But an approx should be within a given percentage range of the true result, not just plain wrong if no specific case is present. Otherwise you could simply do: distance = 1 ^^
PS: yes it is faster. But an approx should be within a given percentage range of the true result, not just plain wrong if no specific case is present. Otherwise you could simply do: distance = 1 ^^