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.

Author
Message
bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 27th Aug 2004 13:58 Edited at: 27th Aug 2004 14:00
I want to calculate an angle in which the properties I know of is the:

x1, y1
x2, y2

and the angle is calcualated from the horizontal..

so here's an example..




I'd be happy to answer any questions if you don't understand
if anyone knows the solution to the angle of ? from the horizontal axis, I'd be very grateful if you share

Codger
23
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 27th Aug 2004 14:50
1/. Learn Trig
2/. object angle x ()

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Aug 2004 15:23
If you haven't learned the basics of trigonometry yet - it's really not hard, give it a go! The answer, by the way, is angle = arctan (y/x) where arctan is 'atan' in DBPro, and y and x are the distances found from y2-y1 and x2-x1.


IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Aug 2004 22:22
To find the angle from one point to another you use the following command

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

That finds the angle from 'north' that point 2 is from point 1.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 28th Aug 2004 01:00
heh, thanks guys.. I've always had problems trying to transfer my education in trig into programming^_^ Which wasn't very good education in the first place

Perhaps I should see if my library has any trig books^_^

But anyway, that answered my questions

JerBil
22
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 28th Aug 2004 02:39 Edited at: 28th Aug 2004 02:42
This is not exactly what you wanted, but there's some
good basic info on the site below, although sometimes the
site is down...

http://www.geocities.com/siliconvalley/campus/9449/physics.htm#5


-JerBil

Login to post a reply

Server time is: 2026-06-05 07:07:52
Your offset time is: 2026-06-05 07:07:52