Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Joshua Schpok

Line vs. Circle: Fight!

This topic is 6871 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
A circle is defined as the set of points that are all equidistant from one point, which is the center of the circle. So basically, any points on the line that are R units away from the center lie on the circle (R = radius).

The (nonstandard) equations for lines and circles are:

y = mx + b and
(x-h)^2 + (y-k)^2 = r^2

Where m is the slope, and b is the point the line crosses the Y axis.

(h,k) is the center of the circle and R is the radius.

Hope this helps

Share this post


Link to post
Share on other sites
Advertisement
Seemingly simple, yet boggling question:

Given: two points of line segment, point of circle center, circle radius

We are in 2D, here.

How do you determine if and where the line segment is intersecting the circle?

------------------
Oddball Software
http://zap.to/oddball

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!