Files
astronomy/source/kotlin/doc/-state-vector/-state-vector.md
2022-11-14 13:40:10 -05:00

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)