Original Post
Hi! I need a function that gives me an angle based on the distance between two points. As longer the distance, shorter should be the angle. Lets say something like: i have a distance of 10000 then the Dot should be something like 0.93 if the distance is 10 then the Dot could be 0.7 P.E. Could anyone help me finding a good method for this? Square distance is a good bonus ;) Ideally the Dot should vary between 0.7 and 1. As bigger the input (the distance) the returning value should be closer to 1 :). Thanks