byond - Modules - Types

code/__HELPERS/math.dm

/proc/get_line Get a list of turfs in a line from starting_atom to ending_atom.
/proc/get_traversal_line Get a list of turfs in a line from starting_atom to ending_atom. Unlike get_line, this only takes cardinal steps, useful for checking movement or LOS Uses the ultra-fast Bresenham Line-Drawing Algorithm.
/proc/can_see_through Returns if a turf can be seen from another turf.
/proc/line_of_sight Checks if ending atom is viewable by starting atom, uses bresenham line algorithm but checks some extra tiles on a diagonal next tile
/proc/get_dist_manhattan Returns the manhattan distance between two atoms. Returns INFINITY if either are not on a turf, for BYOND get_dist() parity.