Mike Yearwood
Toronto, Ontario, Canada
>Pretty interesting stuff. I think there's another way to do these calcs. Using Sin/Cos you can determine the x and y. You can build a table of sin/cos values in an array and get the value based on the angle between the two objects. This is supposed to be much faster than SQRT.
Do you suppose you could post an alternate algorythm that we could compare?
I used the Pythagorean theorem just because it was the simplest, my trig is sooooo rusty. :-)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only