title: Shifting angles while using Atan2
body: <p>I am currently using Atan2 to calculate the player heading angle.</p>
  <p>however after some trial and error I discovered that the in-game angle's are rather different to that of a &quot;normal&quot; lay out :</p>
  <p><a href="https://i.stack.imgur.com/3Vdkf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Vdkf.png" alt="enter image description here" /></a></p>
  <pre><code>        ReturnedAngle = Math.Atan2(Y2 - Y1, X2 - X1);  /// ArcTan2 the difference in our Y axis is always passed first followed by X
  
          ReturnedAngle = (180 / Math.PI) * ReturnedAngle; /// Converting our radians to Degrees the convervion ends at 358 not the full 360 degrees.
  
          ReturnedAngle = Math.Round(ReturnedAngle + 360, MidpointRounding.AwayFromZero) % 360; /// MOD and round our angle.
  </code></pre>
  <p>Above is the C# code I am using to calc the heading angle. My questions is how would I go about converting this angle from the &quot;normal&quot; angle system to the in-game one.</p>