mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-17 19:23:21 +01:00
65ff1fd61a
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
9 lines
255 B
Plaintext
9 lines
255 B
Plaintext
///Returns the distance between two atoms
|
|
/proc/get_dist_euclidean(atom/first_location, atom/second_location)
|
|
var/dx = first_location.x - second_location.x
|
|
var/dy = first_location.y - second_location.y
|
|
|
|
var/dist = sqrt(dx ** 2 + dy ** 2)
|
|
|
|
return dist
|