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 / Finding the value between 2 points

Author
Message
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 28th Feb 2007 17:36 Edited at: 28th Feb 2007 18:50
Just wondering, does anyone have a function that can find the [edit] (sorry I mean the angle) between 2 points in 2D?

I can see you...
Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 28th Feb 2007 18:33
Add them and divide by 2




Note: This is PB code.

NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 28th Feb 2007 18:48
I'm very sorry, I said it wrong, I meant how do you find the angle between 2 points in 2D.

Thanks for the neat reply anyway

I can see you...
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 28th Feb 2007 19:07
Angle = ATANFULL((x2 - x1), (y2 - y1))



TDK_Man

Login to post a reply

Server time is: 2025-05-26 03:28:47
Your offset time is: 2025-05-26 03:28:47