In my understanding this should not related to sensorAngle. sensorAngle always returns the angle need to be rotated (clockwise) to show in its natural orientation. I added and tested it just because there are plenty discussion inside the bug.

mirroring (scale(-1, 1)) and rotating are just *different* transforming. Rotating in opposite directions obtains incorrect result.