feat: compute eccentric anomaly with binary search

This commit is contained in:
ktyl 2024-04-03 19:43:10 +01:00
parent 5ff74be9fe
commit 76eaaa24a2
2 changed files with 3 additions and 5 deletions

@ -1 +1 @@
Subproject commit 53c166d2c70f872015077f6ea6424daead6d4c0a
Subproject commit eecc8714266f5bf4b2fefbb8a4529590f224d881

View File

@ -78,11 +78,9 @@ glm::mat4 Orbit::getLookAlongMatrix(const float meanAnomaly)
float Orbit::getEccentricAnomaly(const float meanAnomaly)
{
const float eccentricity = _keplerianElements[astro::eccentricityIndex];
float eccentricAnomaly = astro::convertEllipticalMeanAnomalyToEccentricAnomaly(
float eccentricAnomaly = astro::convertEllipticalMeanAnomalyToEccentricAnomalyBS(
eccentricity,
meanAnomaly,
(float)10e-3,
100);
meanAnomaly);
return eccentricAnomaly;
}