How to find the clockwise rotation angle of a point in Cartesian coordinate system

for example, (- 1) get 225

Feb.28,2021

use arctan (y code x) and judge which interval to be in according to the quadrant


$$ \ frac {180} {\ pi*arccos (\ frac {x} {\ sqrt {x ^ 2 + y ^ 2}})} $$

when y is negative, you need to subtract the above value from 360


use the trigonometric function tan = y code x to inversely calculate the angle
and then judge the angle in the positive direction of the X axis (+ 0 , + 90 , + 180 , + 270 , respectively)

.

              |         
              |
              |     
              |
------------------------------
   (-1,-1)    |
              |
              |
              |
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1a06c-33199.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1a06c-33199.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?