Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Intersection between a sphere and line in the 3d

Subject: Intersection between a sphere and line in the 3d

From: mhm Mousa

Date: 11 Aug, 2009 08:44:03

Message: 1 of 3

Dear all,
I have a problem.
I have created a sphere in the 3d and I want to make intersection between a line and the sphere...and I want to determine the point (x,y,z) of the intersection
thanks in advance,
M

Subject: Intersection between a sphere and line in the 3d

From: us

Date: 11 Aug, 2009 09:01:20

Message: 2 of 3

"mhm Mousa" <mhm_22_5_1985@yahoo.com> wrote in message <h5rb0j$8cf$1@fred.mathworks.com>...
> Dear all,
> I have a problem.
> I have created a sphere in the 3d and I want to make intersection between a line and the sphere...and I want to determine the point (x,y,z) of the intersection
> thanks in advance,
> M

what have you come up with so far...
in particular, CSSMers are very interested in seeing your ML code - because this is what this NG is all about...

us

Subject: Intersection between a sphere and line in the 3d

From: Roger Stafford

Date: 11 Aug, 2009 19:50:19

Message: 3 of 3

"mhm Mousa" <mhm_22_5_1985@yahoo.com> wrote in message <h5rb0j$8cf$1@fred.mathworks.com>...
> Dear all,
> I have a problem.
> I have created a sphere in the 3d and I want to make intersection between a line and the sphere...and I want to determine the point (x,y,z) of the intersection
> thanks in advance,
> M

A Hint: It takes one equation to define a sphere and two equations to specify a straight line. That gives you three equations in three unknown 3D coordinates to solve.

Roger Stafford

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us