Transformation Matrix from x-axis

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
Philosophaie
Messages
456
Reaction score
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|
 
Last edited:
Physics news on Phys.org
Originally at (r, 0 ,0) transform to (r, theta, phi) for all u and v.