Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programming challenge, gravity
Message
From
24/06/2004 13:33:12
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
24/06/2004 12:14:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00916106
Message ID:
00916944
Views:
46
Hiya Mike

>>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. :-)

I'll be my trig is rustier than your trig. But Hilmar already explained the process. I don't have the time to modify your routine right now. Sorry.
Previous
Reply
Map
View

Click here to load this message in the networking platform