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.

Dark GDK / Simplest way to calculate an angle...

Author
Message
TeNgu
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location:
Posted: 22nd Jul 2008 21:07
What is the simplest way to calculate an angle in dark gdk?

I have looked at dbTan and dbTanFull, but I don't understand how to formulate a point as a float.

if I have my
start point at x1 = 2, y1 = 2.
and
end point at x2 = 4, y2 = 4.

The angle between these two points should be 45°.

So any clue how to get that angle?


-Patrik
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 22nd Jul 2008 21:19
dbAtanFull( DistX, DistY );

Don't you just hate that Zotoaster guy?
TeNgu
16
Years of Service
User Offline
Joined: 4th Jul 2008
Location:
Posted: 22nd Jul 2008 21:29
ah of course. Thanks. =)


-Patrik


PS: This forum is great. I get answers in matter of seconds. So great.

Login to post a reply

Server time is: 2024-11-20 17:33:26
Your offset time is: 2024-11-20 17:33:26