mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-02-06 13:42:10 -05:00
The dokkaGfm tool has a few oddities I don't like. I updated my format_kotlin_doc.py script to work around a couple of them: 1. Strip out all the noisy [jvm] tags it puts everywhere. 2. Remove the unhelpful and incorrect `Properties` sections it adds to all my enum classes and enum members. I will come back and address other issues later.
10 lines
348 B
Markdown
10 lines
348 B
Markdown
//[astronomy](../../../index.md)/[io.github.cosinekitty.astronomy](../index.md)/[Vector](index.md)/[toSpherical](to-spherical.md)
|
|
|
|
# toSpherical
|
|
|
|
fun [toSpherical](to-spherical.md)(): [Spherical](../-spherical/index.md)
|
|
|
|
Converts Cartesian coordinates to spherical coordinates.
|
|
|
|
Given a Cartesian vector, returns latitude, longitude, and distance.
|