Skip to main content

Line circle intersection

1 reply [Last post]
Anonymous

Hello,

If I have a Line2D and an Ellipse2D (which in my case will be a circle),

Is there a way to get the 2 points on the circle where the Line2D
(infinitely extended) intersects the circle (if in fact it does
intersect)?

Thanks,

Ted Hill

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kirillcool
Offline
Joined: 2004-11-17
Points: 0

The first result of "line circle intersection" on Google will point you to the exact math formulas to compute these two points.