mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
zone reduction tick working kinda
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
function getDistanceFromLatLon([lat1, lon1], [lat2, lon2]) {
|
||||
export function getDistanceFromLatLon({lat: lat1, lng: lon1}, {lat: lat2, lng: lon2}) {
|
||||
var R = 6371; // Radius of the earth in km
|
||||
var dLat = deg2rad(lat2-lat1); // deg2rad below
|
||||
var dLon = deg2rad(lon2-lon1);
|
||||
|
||||
Reference in New Issue
Block a user