Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to prevent negative angles?

$
0
0

Hi ...

May I know how to prevent negative angles to be detected ?

Is there something wrong with my formula that is causing the negative angle to show up?

I only want to show all positive angles.

   int LeftShoulderAngle = Convert.ToInt32(Math.Atan2(dy, dx) * (180 / Math.PI));


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>