would anyone know a method or algorithm (js) to calculate andHow can I detect if athe mouse cursor is moving byin a circle around a target, and calculate how many turns it's done? Example
For example, if aI rotate the mouse *4 time4 times around a specific XY point on the screen, iI would like to re-center my camera (in my context i, I need algoritmethis algorithm for a camera enginesystem)
I search i little bit on the web, but no found good formula to perform this.
Maybe a will need a special api ?
thank.