# toSpherical

Converts from Cartesian to spherical coordinates. x, y, and z coordinates in the resulting vector correspond to radius, theta, and phi respectively.

vec3 toSpherical(vec3 p);

# Example