Toolkit: Lambert solver (transfer between two positions in a given time)
Lambert's problem (find the orbit connecting two position vectors in a given time) underlies rendezvous targeting, interplanetary trajectories and transfer planning. This is the toolkit's first advanced algorithm.
Deliverable
lambert(r1Km, r2Km, timeOfFlightS, { prograde = true })returning departure and arrival velocity vectors in km/s- Universal-variable formulation or Izzo's method, with the choice explained in the pull request
- Documentation of the singular 180° case and how the solver handles it
How it is verified
- Reproduce at least one published worked example, cite it, and add it as a reference vector
- Self-consistency test: propagate the departure state for the time of flight with a two-body propagator; it must arrive within 1 m of r2
cd toolkit && npm testpasses in CI
