Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a 3D space with axis $(x, y ,z)$ and I can make a circle in the $xy$-plane.

To make a circle in the xy-plane I currently use spherical coordinates $(r, \theta, \phi)$ where $r = 1$, $\theta = \pi/2$, and $\phi = [0, 2\pi]$ and this is converted to Cartesian coordinates $(x, y, z)$ using the equations:

$x = r\sin\theta$ $\cos\phi$

$y = r\sin\theta$ $\sin\phi$

$z = r\sin\theta$

How do I tile this circle around the y-axis ? so it can circle on any plane starting from the xy-plane to the zy-plane. I hope this all makes sense.

share|improve this question
1  
Do you require your result to be in spherical coordinates again? Because giving a result in cartesian coordinates would be rather easy. –  MvG Oct 17 '12 at 20:26
    
@MvG cartesian coordinates is exactly what I need. I'm only using spherical coordinates because it made the equation easier. –  ahenderson Oct 17 '12 at 20:27
add comment

1 Answer 1

up vote 1 down vote accepted

You can simply rotate your setup: let $\phi\in[0,2\pi]$ parametrize your circle like you did, but use $\theta\in[0,\frac\pi2]$ to describe the rotation of your plane. Then you can use

\begin{align*} x &= r\cos\phi\cos\theta \\ y &= r\sin\phi \\ z &= r\cos\phi\sin\theta \end{align*}

For $\theta=0$ this gives a circle in the $xy$ plane, and for $\theta=\frac\pi2$ the circle lies in the $zy$ plane.

share|improve this answer
    
This solution fits like a glove. Thanks. –  ahenderson Oct 17 '12 at 21:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.