<p>If we take some ring around the sphere such that <span class="math-container">$\theta=const$</span>, we can see that such a ring transforms into a line on the polar space.</p>

<p>Converting every possible ring to the polar space gives the desired surface. However this would involve computing many different values to get an approximation or doing some algebra, which we don't want. (I'm assuming you want to keep mathematical notation to a minimum here). However we can get a pretty close idea by figuring out just a few easy to compute values.</p>

<p>Now. If we grab the ring that goes around the center of the sphere and transform that one, it is clear that it ends up as a line with <span class="math-container">$\theta=45^o$</span> and <span class="math-container">$r=\sqrt{2}R$</span> (that is because its vertical distance from the origin equals its horizontal distance at every point).</p>

<p>There are two more rings that are useful to us here: the two very small rings around the poles of the sphere.</p>

<p>The ring around the bottom pole transforms into a line with <span class="math-container">$\theta=90^o$</span> and <span class="math-container">$r=0$</span>.</p>

<p>The ring around the top pole transforms into a line with <span class="math-container">$\theta=0^o$</span> and <span class="math-container">$r=2R$</span>.</p>

<p>We now have three lines through which we can fit our surface. You can do this with pen and paper. I'm not quite sure of what kind of curve you end up with (I haven't done the algebra haha) but my guess would be some kind of sideways parabola.</p>

<p>EDIT: I did the math, <span class="math-container">$r=2R\cos(\theta)$</span></p>

<p>NOTE: I measure my <span class="math-container">$\theta$</span> as the angle between some line crossing the origin and the Z axis</p>

CC BY-SA 4.0
2019-02-13T14:52:39.603Z
2019-02-13T16:33:55.130Z
2019-02-13T16:33:55.130Z
Sebastián Mestre
<p>I am still not sure whether this is what you actually want, but here's how to derive it mathematically. The equation of a sphere with center <span class="math-container">$(c_x, c_y, c_z)$</span> and radius <span class="math-container">$\rho$</span> is:
<span class="math-container">$$(x-c_x)^2 + (y-c_y)^2 +(z-c_z)^2 =\rho^2$$</span>
From the first image we can figure out that the sphere has center <span class="math-container">$(0,0,\rho)$</span>, we also use the spherical coordinates substitution:
<span class="math-container">$$x=r\cos\phi\sin\theta, y=r\sin\phi\sin\theta, z =r\cos\theta$$</span>
Substituting yields:
<span class="math-container">$$(r\cos\phi\sin\theta - 0)^2 + (r\sin\phi\sin\theta-0)^2 + (r\cos\theta-\rho)^2 = \rho^2$$</span>
<span class="math-container">$$r(r-2\rho\cos\theta) = 0$$</span>
The roots to the last equation are <span class="math-container">$$r=0, r=2\rho\cos\theta, \theta\in [0, \pi/2]$$</span>, we can drop the <span class="math-container">$0$</span> since it is covered for <span class="math-container">$\theta = \pi/2$</span>. Also <span class="math-container">$\theta$</span> being in <span class="math-container">$[0, \pi/2]$</span> restricts the sphere to being above the <span class="math-container">$xy$</span> plane, whereas using the full range: <span class="math-container">$[0,\pi]$</span> would produce also a sphere below. Thus you get the offset sphere in spherical coordinates:
<span class="math-container">$$S=\{(r,\theta,\phi) : r=2\rho\cos\theta, \theta\in [0, \pi/2], \phi \in [0,2\pi]\}$$</span>
If you want the ball and not only its boundary, then use <span class="math-container">$r\in [0,2\rho\cos\theta]$</span> rather than <span class="math-container">$r=2\rho\cos\theta$</span>.</p>

CC BY-SA 4.0
2019-02-14T11:45:04.200Z
2019-02-14T12:10:26.127Z
2019-02-14T12:10:26.127Z
lightxbulb
<p>Given this graph in the 3d cartesian coordinates i should figure out the spherical coordinates representation but without the use of calculations .
I've been trying to solve this the whole day but i don't seem to get it and i've searched on all around the internet also no results .
I'll appreciate any help if anyone has an idea about the topic .</p>

<p><a href="https://i.sstatic.net/o57c0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/o57c0.png" alt="enter image description here"></a></p>

<p>NOTE: this is not a homework :)</p>

CC BY-SA 4.0
2019-02-12T19:00:57.770Z
I don't quite understand this question. The "spherical coordinates representation" of *what*? And what does "without calculations" mean here? Are you just supposed to draw the sphere on the left side into polar space on the right side? Ultimately, though, I'm not even sure this question is particularly computer graphics related to begin with. It seems more like a general mathematical question.
Christian Rau
CC BY-SA 4.0
2019-02-12T19:36:00.840Z
Your question is not clear, however I believe that this image will help you: https://en.wikipedia.org/wiki/Spherical_coordinate_system#/media/File:3D_Spherical.svg
In cartesian coordinates you represent a point, by its offset along $x,y,z$ in spherical coordinates you represent a point in terms of 2 angles and a length. The equations that you do not want to use are what actually links these two.
lightxbulb
CC BY-SA 4.0
2019-02-13T05:24:39.320Z
I believe the question is what would be the 3d shape of the equivalent sphere on the left, if the coordinates where R/theta/phi instead of XYZ. Probably without calculation means coming up with the shape intuitively. The answer is pretty easy, it looks like a curved sheet from 0,[0-360],0 to 2r,[0-360],90. You can think of it like this: the sphere is a bunch of circles around Z. They start at R=0,phi=0 and go to R=2r,phi=90. Each complete circle around Z is a line from theta=0 to theta=360. So, bunch of circles translates to bunch of lines. We have the start/end, and you can guess the curve.
Shahbaz
<3d><transformations><computational-geometry>
transformation from cartesian coordinates to spherical coordinates without calculations
fred
# transformation from cartesian coordinates to spherical coordinates without calculations

(Asked by: username_0 on 2019-02-12)

Given this graph in the 3d cartesian coordinates i should figure out the spherical coordinates representation but without the use of calculations .
I've been trying to solve this the whole day but i don't seem to get it and i've searched on all around the internet also no results .
I'll appreciate any help if anyone has an idea about the topic .

[![enter image description here](https://i.sstatic.net/o57c0.png)](https://i.sstatic.net/o57c0.png)

NOTE: this is not a homework :)

**Tags:** 3d, transformations, computational-geometry

> **Comments:**
> **username_1**: I don't quite understand this question. The "spherical coordinates representation" of *what*? And what does "without calculations" mean here? Are you just supposed to draw the sphere on the left side into polar space on the right side? Ultimately, though, I'm not even sure this question is particularly computer graphics related to begin with. It seems more like a general mathematical question.  
> **username_2**: Your question is not clear, however I believe that this image will help you: https://en.wikipedia.org/wiki/Spherical_coordinate_system#/media/File:3D_Spherical.svg In cartesian coordinates you represent a point, by its offset along $x,y,z$ in spherical coordinates you represent a point in terms of 2 angles and a length. The equations that you do not want to use are what actually links these two.  
> **username_3**: I believe the question is what would be the 3d shape of the equivalent sphere on the left, if the coordinates where R/theta/phi instead of XYZ. Probably without calculation means coming up with the shape intuitively. The answer is pretty easy, it looks like a curved sheet from 0,[0-360],0 to 2r,[0-360],90. You can think of it like this: the sphere is a bunch of circles around Z. They start at R=0,phi=0 and go to R=2r,phi=90. Each complete circle around Z is a line from theta=0 to theta=360. So, bunch of circles translates to bunch of lines. We have the start/end, and you can guess the curve.  

---

## 2 answers

### Answer by username_4 on 2019-02-13. Score: 1

If we take some ring around the sphere such that $\theta=const$, we can see that such a ring transforms into a line on the polar space.

Converting every possible ring to the polar space gives the desired surface. However this would involve computing many different values to get an approximation or doing some algebra, which we don't want. (I'm assuming you want to keep mathematical notation to a minimum here). However we can get a pretty close idea by figuring out just a few easy to compute values.

Now. If we grab the ring that goes around the center of the sphere and transform that one, it is clear that it ends up as a line with $\theta=45^o$ and $r=\sqrt{2}R$ (that is because its vertical distance from the origin equals its horizontal distance at every point).

There are two more rings that are useful to us here: the two very small rings around the poles of the sphere.

The ring around the bottom pole transforms into a line with $\theta=90^o$ and $r=0$.

The ring around the top pole transforms into a line with $\theta=0^o$ and $r=2R$.

We now have three lines through which we can fit our surface. You can do this with pen and paper. I'm not quite sure of what kind of curve you end up with (I haven't done the algebra haha) but my guess would be some kind of sideways parabola.

EDIT: I did the math, $r=2R\cos(\theta)$

NOTE: I measure my $\theta$ as the angle between some line crossing the origin and the Z axis


---

### Answer by username_2 on 2019-02-14. Score: 0

I am still not sure whether this is what you actually want, but here's how to derive it mathematically. The equation of a sphere with center $(c\_x, c\_y, c\_z)$ and radius $\rho$ is:
$$(x-c\_x)^2 + (y-c\_y)^2 +(z-c\_z)^2 =\rho^2$$
From the first image we can figure out that the sphere has center $(0,0,\rho)$, we also use the spherical coordinates substitution:
$$x=r\cos\phi\sin\theta, y=r\sin\phi\sin\theta, z =r\cos\theta$$
Substituting yields:
$$(r\cos\phi\sin\theta - 0)^2 + (r\sin\phi\sin\theta-0)^2 + (r\cos\theta-\rho)^2 = \rho^2$$
$$r(r-2\rho\cos\theta) = 0$$
The roots to the last equation are $$r=0, r=2\rho\cos\theta, \theta\in [0, \pi/2]$$, we can drop the $0$ since it is covered for $\theta = \pi/2$. Also $\theta$ being in $[0, \pi/2]$ restricts the sphere to being above the $xy$ plane, whereas using the full range: $[0,\pi]$ would produce also a sphere below. Thus you get the offset sphere in spherical coordinates:
$$S=\{(r,\theta,\phi) : r=2\rho\cos\theta, \theta\in [0, \pi/2], \phi \in [0,2\pi]\}$$
If you want the ball and not only its boundary, then use $r\in [0,2\rho\cos\theta]$ rather than $r=2\rho\cos\theta$.


---

