Skip to main content

cartesian_to_cylindrical

Function cartesian_to_cylindrical 

Source
pub fn cartesian_to_cylindrical(v: &Vec3) -> (Real, Real, Real)
Expand description

Convert Cartesian coordinates to cylindrical (rho, phi, z).

  • rho = radial distance in XY plane
  • phi = azimuthal angle ∈ (-π, π]
  • z = height