Skip to content

KeplerianFromStateVectors() improvements#2203

Merged
lamont-granquist merged 1 commit into
devfrom
lcg/keplerian-from-state-vectors-improvements
May 23, 2026
Merged

KeplerianFromStateVectors() improvements#2203
lamont-granquist merged 1 commit into
devfrom
lcg/keplerian-from-state-vectors-improvements

Conversation

@lamont-granquist
Copy link
Copy Markdown
Collaborator

Fixes my janky method of dealing with retrograde orbits by properly using retrograde equinoctial elements for retrograde cases.

Adds quite a few tests.

Fixes the random forward-and-back tests to be pseudo-random to eliminate any pseudo-random failures.

Fixed an issue in Clamp2Pi that could result in small negative values annoying returning exactly 2Pi instead of [0,2Pi)

Now using an exact EPS value instead of the one I historically had been using for years that was rounded off to be slightly too small.

Fixes my janky method of dealing with retrograde orbits by properly
using retrograde equinoctial elements for retrograde cases.

Adds quite a few tests.

Fixes the random forward-and-back tests to be pseudo-random to eliminate any
pseudo-random failures.

Fixed an issue in Clamp2Pi that could result in small negative values
annoying returning exactly 2Pi instead of [0,2Pi)

Now using an exact EPS value instead of the one I historically had been
using for years that was rounded off to be slightly too small.
@lamont-granquist lamont-granquist merged commit 69911d4 into dev May 23, 2026
1 check passed
@lamont-granquist lamont-granquist deleted the lcg/keplerian-from-state-vectors-improvements branch May 23, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant