Function nyx_space::utils::cartesian_to_spherical
source · pub fn cartesian_to_spherical(v: &Vector3<f64>) -> (f64, f64, f64)
Expand description
Converts the input vector V from Cartesian coordinates to spherical coordinates Returns ρ, θ, φ where the range ρ is in the units of the input vector and the angles are in radians