Skip to content
Success

Changes

Summary

  1. KeplerianFromStateVectors() improvements (commit: 4851e88) (details)
Commit 4851e88f9cc61293cabf51db590b9928a6d4899d by lamont
KeplerianFromStateVectors() improvements

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.
(commit: 4851e88)
The file was addedMechJebLibTest/FunctionsTests/KeplerianFromStateVectorsRetrogradeCoverageTests.cs
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was addedMechJebLibTest/FunctionsTests/KeplerianFromStateVectorsCircularTests.cs
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was addedMechJebLibTest/FunctionsTests/KeplerianFromStateVectorsAccuracyTests.cs
The file was modified MechJebLibTest/FunctionsTests.cs (diff)
The file was addedMechJebLibTest/FunctionsTests/KeplerianFromStateVectorsTests.cs
The file was modified MechJebLibTest/StaticTests.cs (diff)