Files
astronomy/source/kotlin/doc/-state-vector/-state-vector.md
2025-01-27 11:50:43 -05:00

1.2 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)