mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-28 18:20:34 -05:00
1.1 KiB
1.1 KiB
//astronomy/io.github.cosinekitty.astronomy/StateVector/StateVector
StateVector
fun StateVector(pos: Vector, vel: Vector, time: Time)
Combines a position vector and a velocity vector into a single state vector.
Parameters
| pos | A position vector. |
| vel | A velocity vector. |
| time | The common time that represents the given position and velocity. |
fun StateVector(x: Double, y: Double, z: Double, vx: Double, vy: Double, vz: Double, t: Time)