/tg/ Station 13 - Modules - Types

code/__HELPERS/maths.dm

/proc/get_angle Calculate the angle between two points and the west|east coordinate
/proc/get_pixel_angle for getting the angle when animating something's pixel_x and pixel_y
/proc/get_line Get a list of turfs in a line from starting_atom to ending_atom.
/proc/display_power Format a power value in W, kW, MW, or GW.
/proc/display_joules Format an energy value in J, kJ, MJ, or GJ. 1W = 1J/s.
/proc/display_energy Format an energy value measured in Power Cell units.
/proc/anyprob chances are 1:value. anyprob(1) will always return true
/proc/bit_count counts the number of bits in Byond's 16-bit width field, in constant time and memory!
/proc/make_tuple Returns the name of the mathematical tuple of same length as the number arg (rounded down).