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 / Angle between two points

Author
Message
ironhoof
16
Years of Service
User Offline
Joined: 3rd Sep 2002
Location:
Posted: 7th Oct 2002 06:47
I have a vast knowledge in math, but at some point even the people who know alot have a "I SUCK moment"

I used to know this but i forgot!

Whats the formula for finding the angle between two points?

if someone could lend me this info it would be apreaciated!
indi
16
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Oct 2002 10:08
I think this is the wrong forum and I think u want to explore the atanfull command.

no website at moment
Tapewormz
16
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 7th Oct 2002 22:43
You'll be able to find information like this easilly from Dr. Math.

http://mathforum.org/dr.math/

You can email Dr. Math your question, and he'll respond with the algorythm. Do you need to find the angle between two points in 3D space or in 2D space?

Tapewormz
16
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 7th Oct 2002 22:48
I found this in the forum on Dr. Math and it may be helpful.

http://mathforum.org/library/drmath/view/60800.html

ironhoof
16
Years of Service
User Offline
Joined: 3rd Sep 2002
Location:
Posted: 8th Oct 2002 00:05
Yes it was 2d sorry for not specifying,

Wrong forum? IT says ask for graphics if your notgood at it or if your good at that it says you can ask about code.. which I think I am doing... kinda..

YES the Dr. Math thing is just what I need I know AtanFull dose it but i need to know the formula thanks everyone!

Crossleo
16
Years of Service
User Offline
Joined: 1st Oct 2002
Location: United States
Posted: 12th Oct 2002 06:33
well the title does say Team requests

Crossleo
-------------------------------------
Admin of the Cross entertainment team
TheCyborg
16
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 15th Oct 2002 22:29
Ehh... In the top of my window it says:
DarkBASIC Discussion :: Angle between two points

so this is not team requests!

"It's good to be bad..."
Dungeon Keeper
DSG
16
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Hampshire, England
Posted: 15th Oct 2002 23:43
As indi cited above, you may use the atanfull function to return the angle between two points:

angle# = atanfull(x2-x1, y2-y1)

Where x1/x2 and y1/y2 define the coordinates of your points.

The atanfull command returns a value between -180 and 180, so you'll have to format the resultant value if you require otherwise.

Example:



"so this is not team requests!"

That's because I moved it

Login to post a reply

Server time is: 2019-03-23 17:34:00
Your offset time is: 2019-03-23 17:34:00