Haversine formula Unity
问题 So I'm trying to use the haversine formula in Unity to get the distance between two different points (latitude and longitud given). The code is working (no errors) but I keep gettting a wrong result. I followed the entire formula so I don't really know where the math/code problem is. Any idea? Here's the code: public float lat1 = 42.239616f; public float lat2 = -8.72304f; public float lon1 = 42.239659f; public float lon2 = -8.722305f; void operacion(){ float R = 6371000; // metres float