Yogstation 13 - Modules - Types

code/__HELPERS/maths.dm

/proc/get_angle Calculate the angle between two atoms and the west|east coordinate
/proc/delta_to_angle Calculate the angle produced by a pair of x and y deltas
/proc/get_angle_raw Angle between two arbitrary points and horizontal line same as /proc/get_angle
/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).
/proc/at_least Takes a value, and a threshold it has to at least match returns the correctly signed value max'd to the threshold