Skip to main content

vec3_to_cylindrical

Function vec3_to_cylindrical 

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

Convert a Cartesian 3-vector to cylindrical coordinates (rho, phi, z).

rho ≥ 0, phi ∈ (-π, π], z is unchanged.