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 / 2D Circle Question

Author
Message
Hopilite
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location:
Posted: 19th Jan 2004 22:29
In DBC, After I create a circle with a radius and position based on variables, how would I determine if an object is in the circle, and tell how far the object is away from the the center of the circle.
Thanks

Some people say 2+2=Fish.
I don't.
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 19th Jan 2004 23:43
You need the good old 2D distance formula



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.

Login to post a reply

Server time is: 2024-11-26 01:50:44
Your offset time is: 2024-11-26 01:50:44