1
0
mirror of https://github.com/christiaangoossens/Planetary-Orbit-Simulator synced 2025-07-06 11:00:47 +00:00

Change AOP calculations

This commit is contained in:
Christiaan Goossens
2016-12-04 16:19:43 +01:00
parent 23572dbd48
commit 2e732967cd
2 changed files with 154 additions and 183 deletions

View File

@ -10,7 +10,7 @@ public class AOP {
Vector3d eccentricity = new Vector3d(0,0,0);
eccentricity.sub(perihelion, aphelion);
if (eccentricity.getZ() < 0) {
if (eccentricity.getZ() < ascendingNode.getZ()) {
return (2 * Math.PI) - ascendingNode.angle(eccentricity);
} else {
return ascendingNode.angle(eccentricity);