astronomy

//astronomy/io.github.cosinekitty.astronomy/Spherical/toVector

toVector

fun toVector(time: Time): Vector

Converts spherical coordinates to Cartesian coordinates.

Given spherical coordinates and a time at which they are valid, returns a vector of Cartesian coordinates. The returned value includes the time, as required by the type Vector.

Parameters

   
time The time that should be included in the return value.