Hex::atan is working better - still needs some work for the corner
cases.