Topic: Best way to get distance between two sets of coordinates?
the title says it all, whats the easiest way to get the distance between two sets of coordinates?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Best way to get distance between two sets of coordinates?
the title says it all, whats the easiest way to get the distance between two sets of coordinates?
Hello.
OnlineMapsUtils.DistanceBetweenPoints
http://infinity-code.com/doxygen/online … bc84a165f2
Hello,
I am using that method to get the distance but it's returning a vector2, is that normal? How can I get it as one number?
Hello.
Yes, it is normal.
In some cases useful to have distance by latitude or longitude.
Use «Vector2.magnitude» to get the total distance.
https://docs.unity3d.com/ScriptReferenc … itude.html
Infinity Code Forum → Online Maps Help → Best way to get distance between two sets of coordinates?
Powered by PunBB, supported by Informer Technologies, Inc.