Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
世界を4つの象限に分割し、これらの象限に領域を作成し、自分の位置から自分が立っている領域内のポイントまでの距離を見つけたい場合、iPhoneで目的cを使用してどのように可能ですか? または他の可能な解決策
これら2点の緯度と経度を計算する方法があれば、ハーベシアン法を使用して2点間の距離を見つけることができます。
**Haversine formula: R = earth’s radius (mean radius = 6,371km) Δlat = lat2− lat1 Δlong = long2− long1 a = sin²(Δlat/2) + cos(lat1).cos(lat2).sin²(Δlong/2) c = 2.atan2(√a, √(1−a)) d = R.c**