diff --git a/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java b/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java index edcac2b966b59b224d4ea6495fd4b13c77909ef5..48876237bea32a7e1ff6f3bf4b2452663f2bafde 100644 --- a/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java +++ b/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java @@ -95,7 +95,7 @@ public class MultiLayerModel implements AtmosphericRefraction { if (previousRefractionIndex > 0) { theta2 = FastMath.asin(previousRefractionIndex * FastMath.sin(theta1) / entry.getValue()); - // get current los + // get los double a = FastMath.sqrt((1 - FastMath.pow(FastMath.cos(theta2), 2)) / (1 - FastMath.pow(FastMath.cos(theta1), 2))); double b = a * FastMath.cos(theta1) - FastMath.cos(theta2);