Documentation / @interstellar-tools/types / CwState
Type Alias: CwState
ts
type CwState = readonly [number, number, number, number, number, number];Defined in: orbits.ts:37
Clohessy–Wiltshire / Hill relative-motion state vector in the LVLH frame.
Axes (LVLH / RSW-style):
x— radial (outward from the central body / reference orbit radius)y— along-track / tangential (direction of motion of the reference orbit)z— cross-track (completes right-handed frame, roughly orbit-normal)
Components:
x,y,zare relative position components.xDot,yDot,zDotare relative velocity components (time derivatives).
Units:
- Positions in meters or kilometers (choose one and stay consistent).
- Velocities in m/s or km/s accordingly.
This tuple is commonly used as the state for integrating the CW/Hill ODEs.
Example
ts
const s: CwState = [
100, // x (m)
0, // y (m)
0, // z (m)
0, // xDot (m/s)
0.01, // yDot (m/s)
0 // zDot (m/s)
];