Documentation / @interstellar-tools/types / Cr3bpState
Type Alias: Cr3bpState
ts
type Cr3bpState = readonly [
x: number,
y: number,
z: number,
xDot: number,
yDot: number,
zDot: number
];Defined in: three-body.ts:20
A state in the circular restricted three-body problem (CR3BP), in the rotating, normalised frame.
The two large bodies sit on the x axis, the larger at
Example
ts
// At rest at the Earth–Moon L4 point
const l4: Cr3bpState = [0.5 - 0.01215, Math.sqrt(3) / 2, 0, 0, 0, 0];