mirror of
https://github.com/sergeyyarkov/ragemp-copchase-mod.git
synced 2026-10-11 10:29:03 +03:00
5 lines
160 B
JavaScript
5 lines
160 B
JavaScript
const getDistance = function (v1, v2){
|
|
return Math.abs(Math.sqrt(Math.pow((v2.x - v1.x),2) + Math.pow((v2.y - v1.y), 2)));
|
|
}
|
|
|
|
module.exports = { getDistance } |