title: Is this the correct method of using dot product to find the angle between two vectors? C++ SFML
body: <p>So in another question I was told that you could use a simplified formula of the dot product to find the angle between two vectors:</p>
  
  <pre><code>angle = atan2(mouseY, mouseX) - atan2(yPos, xPos); //xPos, yPos is position of player
  </code></pre>
  
  <p>Except, from what I understood it simply takes points as vectors. Which is why the mouse and player position is plugged in the parameters. However when I move the mouse around the player in a 360 degree radius, the angle and therefore rotation of the player is a value from around -0.3... to -1.4...
  Is this not the correct method? Am I supposed to be representing vectors not as X, Y positions but as something else?</p>
  
  <p>There's also another formula I found which also doesn't seem to work for me:</p>
  
  <pre><code>angle = atan2(mouseY - yPos, mouseX - xPos);
  </code></pre>