Trying to help @OnesForZeros I probably over complicated this, but it works. The scratch direction values not being from 0 - 360 has always boggled me. I'm also not quite sure what you need this for, there are simpler ways of doing this but this should cover all scenarios.