pygame-ce
pygame-ce copied to clipboard
new angle and angle_rad property in vector2
trafficstars
This PR follows this one : https://github.com/pygame-community/pygame-ce/pull/3216
I make the changes needed and add two properties :
angle_rad : Returns the vector’s angle in radians relative to the positive x-axis.
angle : Returns the angle in degrees, normalized to (180,180].