Atan

Keywords: Arctangent, atan2

Atan2 is a version of Arctangent that gives you one value for each angle of rotation whereas regular atan can give different results if X is positive or negative. This is useful when you need to know how far along a unit circle you are. A use case for this is in an impostor shader where you alter the uv coordinates of a flipbook based on the viewing angle. [[File:The atan2 Function - Friday Minis 260|centre|thumb|480x480px|Video by 0612 TV w/NERDfirst

]]