Goonstation 13 - Modules - TypesDefine Details

_std/macros/dir.dm

angle2dirGiven an angle, matches it to the closest direction and returns it.
/proc/vector_magnitude Returns the vector magnitude of an x value and a y value
/proc/vector_to_dir Transforms a supplied vector x & y to a direction
/proc/angle_to_dir Transforms a given angle to a cardinal/ordinal direction
/proc/dir_to_angle Transforms a cardinal/ordinal direction to an angle
/proc/angle_to_vector Transforms a given angle to vec2 in a list

Define Details

angle2dir

Given an angle, matches it to the closest direction and returns it.