From 2d8963efbfb23ce70803b80bffbcd81fdfd30d8b Mon Sep 17 00:00:00 2001
From: sesteves <sroesteves@gmail.com>
Date: Sun, 10 Jul 2016 16:44:08 +0100
Subject: [PATCH] minor

---
 .../orekit/rugged/atmosphericrefraction/MultiLayerModel.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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