Get Rotation in degrees (0-360) from a rotated angle?

1.1k Views Asked by At

I have a rectangle that is facing up. ($0^\circ$)

I'm getting a number bettween $-1000$ to $1000$ or even more, and this number is the angle that is rotating the rectangle.

How can I know the degrees it is facing now?