Skip to main content

from_cartesian

Function from_cartesian 

Source
pub fn from_cartesian(pos: Vec3) -> SphericalCoord
Expand description

Convert a Cartesian position to spherical coordinates. The radius is implicitly the length of the vector.