astronomy

//astronomy/io.github.cosinekitty.astronomy/Vector/toSpherical

toSpherical

fun toSpherical(): Spherical

Converts Cartesian coordinates to spherical coordinates.

Given a Cartesian vector, returns latitude, longitude, and distance.