Skip to main content

Cartesian, cylindrical, spherical conversion

Short answer

Cartesian uses x,y,z; cylindrical uses rho, phi, z; spherical uses r, theta from +Z, and phi from +X. Part (a): (3,4,5) becomes cylindrical (5, 53.13 deg, 5) and spherical (7.071, 45 deg, 53.13 deg). Part (b): r=10, theta=60 deg, phi=45 deg gives Cartesian (6.124, 6.124, 5.000).

Explain the Cartesian, cylindrical and spherical coordinate systems used in geometric modelling. (a) Convert the Cartesian point (3, 4, 5) into cylindrical and spherical coordinates. (b) Convert the spherical point r = 10, theta = 60 deg (measured from the +Z axis), phi = 45 deg (azimuth from +X in the XY plane) into Cartesian coordinates.

Coordinate systems

  • Cartesian (x,y,z)(x, y, z): three mutually perpendicular axes; simplest for prismatic shapes and used internally by CAD.
  • Cylindrical (ρ,ϕ,z)(\rho, \phi, z): radial distance in the XY plane, azimuth angle from +X, and height; suited to shafts, holes and revolved parts.
  • Spherical (r,θ,ϕ)(r, \theta, \phi): distance from origin, polar angle from +Z, azimuth from +X; suited to spheres and radial scanning.

Relations:

ρ=x2+y2,ϕ=tan⁡−1yx,r=x2+y2+z2,θ=cos⁡−1zr\rho=\sqrt{x^2+y^2},\quad \phi=\tan^{-1}\frac{y}{x},\quad r=\sqrt{x^2+y^2+z^2},\quad \theta=\cos^{-1}\frac{z}{r} x=rsin⁡θcos⁡ϕ,y=rsin⁡θsin⁡ϕ,z=rcos⁡θx=r\sin\theta\cos\phi,\quad y=r\sin\theta\sin\phi,\quad z=r\cos\theta

(a) Point (3, 4, 5)

ρ=32+42=5ϕ=tan⁡−1(4/3)=53.13∘r=9+16+25=7.071θ=cos⁡−1(5/7.071)=45∘\begin{aligned} \rho &= \sqrt{3^2+4^2} = 5 \\ \phi &= \tan^{-1}(4/3) = 53.13^\circ \\ r &= \sqrt{9+16+25} = 7.071 \\ \theta &= \cos^{-1}(5/7.071) = 45^\circ \end{aligned}

Cylindrical: (5, 53.13∘, 5)(5,\ 53.13^\circ,\ 5). Spherical: (7.071, 45∘, 53.13∘)(7.071,\ 45^\circ,\ 53.13^\circ).

(b) Spherical to Cartesian

x=10sin⁡60∘cos⁡45∘=10(0.8660)(0.7071)=6.124y=10sin⁡60∘sin⁡45∘=6.124z=10cos⁡60∘=5.000\begin{aligned} x &= 10\sin 60^\circ\cos 45^\circ = 10(0.8660)(0.7071) = 6.124 \\ y &= 10\sin 60^\circ\sin 45^\circ = 6.124 \\ z &= 10\cos 60^\circ = 5.000 \end{aligned}

Answer: (a) cylindrical (5, 53.13 deg, 5); spherical (7.071, 45 deg, 53.13 deg). (b) Cartesian (6.124, 6.124, 5.000) in the same length units.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Aided Design chapter 2 questions →