Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Relative angles between two points

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 27th Jul 2004 07:38 Edited at: 27th Jul 2004 07:41
How can I find what angle you need to turn to move from point a to point b?
Examples:

..A..B
........
........

Would be 90*


........
..A....
..B....

would be 180*

......B
..A....
........

would be 45*


Programs for programmers.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 27th Jul 2004 07:50
AtanFull.

AtanFull(difference in X positions, difference in Z positions)

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"

Login to post a reply

Server time is: 2025-05-25 01:02:40
Your offset time is: 2025-05-25 01:02:40