Thread: Angle from X,Y
View Single Post
  #19   Spotlight this post!  
Unread 19-04-2004, 22:08
dtk's Avatar
dtk dtk is offline
Registered User
AKA: Daniel Kimura
None #0469 (Las Guerrillas)
 
Join Date: Mar 2002
Rookie Year: 1998
Location: Oakland County MI
Posts: 22
dtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud ofdtk has much to be proud of
Re: Angle from X,Y

Quote:
Originally Posted by scottm87
hmmm you can also use vectors, and find the angle with the formula (u * v)/(|u||v|) (the dot product of u and v divided by the product of the magnitudes). This is useful if you are already using vectors, which are probably better suited for motion and such anyways.

The result of that equation gives you the cos of the angle between the vectors. That is cos(x). You would still need to use an inverse trig function to find the angle (x).

I'm going to have to go ahead and give you -15 points for that one. o_O

-Daniel