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.

Newcomers DBPro Corner / calculating an angle

Author
Message
Chris64
19
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 21st Oct 2004 10:50
Is there a built in function for calulating the angle from x1,y1-x2,y2?
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 21st Oct 2004 11:02
You can use trigonometry (acos, asin, atan) or you can use the built in atanfull(x1-x2,y1-y2) to get an angle in the range of 0-360. It is in the manual.

Xander Moser - Bolt Software - Firewall
Chris64
19
Years of Service
User Offline
Joined: 16th Oct 2004
Location: San Diego
Posted: 21st Oct 2004 11:55
Perfect, thanks! I new I saw it in there somewhere with DBC, but couldn't remember the syntax.

As far as the manual goes...I tried for about an hour to find it before posting. I have a hard time with the semi-alphabetical index...my head hurts after looking at it too long.

Login to post a reply

Server time is: 2024-09-23 03:27:19
Your offset time is: 2024-09-23 03:27:19