I need a way to go from MMFs angle system, to an "angle-from-horizontal", and I need it in just one line. I'm sure it should be fairly simple with a few min's and max's etc, but I just can't seem to get my head around it.
It's a little hard to explain, so I drew a diagram;
If anyone can figure it out, I'd be very grateful.
Thanks a lot for trying, but that doesn't seem to work. It's good for some directions but not others - 45 degrees returns 22.5 for example, when it should return 45.
In case I wasn't clear, I need it to work for all angles 0-360, not just the 8 directions in the diagram.
I'll keep trying, but if anyone else can figure it out in the meantime that'd be great
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.