proc/arctanh(x)
return log((1 + x) / (1 - x)) / 2
But it fails whenever x is 1 or -1 or whenever it tries to find the log of a negative number. Could we possibly get a hard-coded version of arctan?
In a recent project, I want the player to be able to click a turf and shoot in that direction, which requires getting the angle from the player to the turf.
[link]
Also, arctanh is the hyperbolic arctan, which is one of the reasons it's not working as you'd like ;)