# 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

Message
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!
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
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?

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

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!

Posted: 12th Oct 2002 06:33
well the title does say Team requests

Crossleo
-------------------------------------
Admin of the Cross entertainment team
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!

Dungeon Keeper
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