Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 589 Bytes

to-vector.md

File metadata and controls

15 lines (9 loc) · 589 Bytes

//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.