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:
Find the correspondent coordinates of a unit sphere in a sphere of radius X

Subject: Find the correspondent coordinates of a unit sphere in a sphere of radius X

From: Javier

Date: 2 Dec, 2012 12:56:08

Message: 1 of 3

Hi, I want to know if it's posssible to find the correspondent coordinates of a unit sphere in a sphere of radius X. I have several points inside the sphere and I want to maintain their relations in distance separation in a bigger sphere. I tried and I don't think that it's a linear expression (coordinates *(bigradius)). Please, could you help me?

Thanks

Subject: Find the correspondent coordinates of a unit sphere in a sphere of radius X

From: Roger Stafford

Date: 2 Dec, 2012 18:14:08

Message: 2 of 3

"Javier " <javsanzperez@gmail.com> wrote in message <k9fj58$j44$1@newscl01ah.mathworks.com>...
> ..... find the correspondent coordinates of a unit sphere in a sphere of radius X. ......
- - - - - - - - - -
  Let P1 = (x1;y1;z1] be the coordinates of some point on a sphere of radius R1 with center located at C1 = [u1;v1;w1] and let P2 = [x2;y2;z2] be the coordinates of the corresponding point on a sphere of radius R2 with center at C2 = [u2;v2;w2]. Then P2 can be expressed in terms of P1 by the vector equation:

 P2 = C2 + (R2/R1)*(P1-C1);

  This amounts to a translation from center C1 to center C2 followed by an expansion by the ratio R2/R1, and, as you see, it is a linear expression.

Roger Stafford

Subject: Find the correspondent coordinates of a unit sphere in a sphere of radius X

From: Javier

Date: 3 Dec, 2012 13:05:08

Message: 3 of 3

"Roger Stafford" wrote in message <k9g5pg$g8d$1@newscl01ah.mathworks.com>...
> "Javier " <javsanzperez@gmail.com> wrote in message <k9fj58$j44$1@newscl01ah.mathworks.com>...
> > ..... find the correspondent coordinates of a unit sphere in a sphere of radius X. ......
> - - - - - - - - - -
> Let P1 = (x1;y1;z1] be the coordinates of some point on a sphere of radius R1 with center located at C1 = [u1;v1;w1] and let P2 = [x2;y2;z2] be the coordinates of the corresponding point on a sphere of radius R2 with center at C2 = [u2;v2;w2]. Then P2 can be expressed in terms of P1 by the vector equation:
>
> P2 = C2 + (R2/R1)*(P1-C1);
>
> This amounts to a translation from center C1 to center C2 followed by an expansion by the ratio R2/R1, and, as you see, it is a linear expression.
>
> Roger Stafford

Thanks very much, Roger!

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