nyx_space::utils

Function spherical_to_cartesian

source
pub fn spherical_to_cartesian(range_ρ: f64, θ: f64, φ: f64) -> Vector3<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