Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding the coordinates of where a line intersects a sphere...

843799Sep 6 2008 — edited Sep 13 2008
Hi,

I am currently working on a project where I need find the coordinates of the points (2) of intersection between a line and a sphere.

I have searched google and seen quite a few examples of methods that test whether a line intersects a sphere. Unfortunately I need to know the exact location of the intersection points.

I have the coordinates of the line and the sphere. The line passes through the centre of the sphere and intersects the surface at two points these are the two points I need to find.

Any help or suggestions would be greatly appreciated.

Thx

(new to java, too long since I was in a maths lesson)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2008
Added on Sep 6 2008
10 comments
675 views