- #1
Philosophaie
- 462
- 0
I have a Parametric Equation for a Cone:
x=u
y=cos(v)*a*(u-h)/h
z=sin(v)*a*(u-h)/h
where:
h is height of the cone
a is the Radius of the Base
u goes from 0 to h
v goes from 0 to 2*pi
This cone lies on the x-axis. I need it to lie on the theta and phi axis. This is what I came up with to transform it:
|x1| |cos(theta)*cos(phi) sin(phi) sin(theta)*cos(phi) | |x|
|y1| = |sin(theta)*cos(phi) cos(theta)*cos(phi) sin(phi) | = |y|
|z1| |sin(phi) sin(theta)*cos(phi) cos(theta)*cos(phi)| |z|
x=u
y=cos(v)*a*(u-h)/h
z=sin(v)*a*(u-h)/h
where:
h is height of the cone
a is the Radius of the Base
u goes from 0 to h
v goes from 0 to 2*pi
This cone lies on the x-axis. I need it to lie on the theta and phi axis. This is what I came up with to transform it:
|x1| |cos(theta)*cos(phi) sin(phi) sin(theta)*cos(phi) | |x|
|y1| = |sin(theta)*cos(phi) cos(theta)*cos(phi) sin(phi) | = |y|
|z1| |sin(phi) sin(theta)*cos(phi) cos(theta)*cos(phi)| |z|
Last edited: