feat: compute eccentric anomaly with binary search
This commit is contained in:
parent
5ff74be9fe
commit
76eaaa24a2
|
@ -1 +1 @@
|
|||
Subproject commit 53c166d2c70f872015077f6ea6424daead6d4c0a
|
||||
Subproject commit eecc8714266f5bf4b2fefbb8a4529590f224d881
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue