I WAS SUBTRACTING RADIANS FROM DEGREES I AM SUCH A DOLT

did a full replace-all(180->math.pi) so hopefully there were no
important 180s in there