mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
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
|