View Single Post
Re: The f____ shield. How to get bots to deal with it?
Old
  (#4)
Bert
Member
 
Status: Offline
Posts: 11
Join Date: Jan 2004
Default Re: The f____ shield. How to get bots to deal with it? - 20-01-2004

You could solve this with the cosine rule (or whatever it's called in english (translating from dutch here)).


if you got the following situation:


then:

L2²=L1²+L3²-2*L1*L2*cos(a)

You can get cos(a) from that, so use arccos(L2²-etc. etc.) to get a.
[edit]

You could probably keep some sort of cosine table, so you can do rough estimates instead of calculating that arccos everytime

[/edit]

Last edited by Bert; 20-01-2004 at 21:40..
  
Reply With Quote