Topic: Weird issue with DistanceBetweenPoints
Hello, I'm using
OnlineMapsUtils.DistanceBetweenPoints(Vector2 point1, Vector2 point2)
to calculate the distance between some Vector2 longitude/latitude points.
It work fine for most of my values, but unexpectedly it fail on a couple of points, because it return a Nan value.
I've tried using doubles instead of Vector2 and it return a totally weird value.
I really don't know why, please can you check the picture in attachment and help me to understand what's going on?
Many thanks!