Space Station 13 - Modules - Types

code/__HELPERS/maths.dm

/proc/get_angleCalculate the angle between two movables and the west|east coordinate
/proc/delta_to_angleCalculate the angle produced by a pair of x and y deltas
/proc/get_angle_rawAngle between two arbitrary points and horizontal line same as /proc/get_angle
/proc/normalize_angleGet normalized angle (for fix rotation animation bug near 90 and -90 degrees)
/proc/get_lineGet a list of turfs in a line from starting_atom to ending_atom.
/proc/display_powerFormat a power value in W, kW, MW, or GW.
/proc/display_joulesFormat an energy value in J, kJ, MJ, or GJ. 1W = 1J/s.
/proc/anyprobchances are 1:value. anyprob(1) will always return true
/proc/bit_countcounts the number of bits in Byond's 16-bit width field, in constant time and memory!
/proc/make_tupleReturns the name of the mathematical tuple of same length as the number arg (rounded down).