Space Station 13 - Modules - Types

code/core/math/math.dm

/var/DEG_TO_RADMultiplier for converting degrees to radians, rounded to 10 places
/var/RAD_TO_DEGMultiplier for converting radians to degrees, rounded to 10 places
/var/PIThe mathematical constant pi, rounded to 10 places
/var/TWO_PITwice the mathematical constant pi, rounded to 10 places
/var/HALF_PIHalf the mathematical constant pi, rounded to 10 places
/proc/isfiniteTrue if number is a number that is not nan or an infinity.
/proc/poly_interp2Sample t(0..1) into a quadratic binomial polynomial. Generally this is useful for shaping rand() distribution. see tools/polyvis.html for a parameter picker.
/proc/poly_interp3Sample t(0..1) into a cubic binomial polynomial. Generally this is useful for shaping rand() distribution. see tools/polyvis.html for a parameter picker. More expensive than poly_interp2.
/proc/poly_interp4Sample t(0..1) into a quartic binomial polynomial. Generally this is useful for shaping rand() distribution. see tools/polyvis.html for a parameter picker. More expensive than poly_interp3.
/proc/get_circle_coordinatesGet the coordinates that make up a circle of radius on center, packed as (x | y left shift 12). These coordinates are able to be outside the world: check (v < 1 || v > world.maxV) for safety. Implements the Bresenham Circle Drawing Algorithm for the actual point picking.