try to emulate polarAngle