From a4f4850d87006479fb95ac03e0acd596addfec21 Mon Sep 17 00:00:00 2001
From: sesteves <sroesteves@gmail.com>
Date: Thu, 18 Aug 2016 16:08:06 +0100
Subject: [PATCH] refraction index to refractive index

---
 .../atmosphericrefraction/ConstantRefractionLayer.java | 10 +++++-----
 .../rugged/atmosphericrefraction/MultiLayerModel.java  |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/orekit/rugged/atmosphericrefraction/ConstantRefractionLayer.java b/src/main/java/org/orekit/rugged/atmosphericrefraction/ConstantRefractionLayer.java
index 7baf32c2..96739d30 100644
--- a/src/main/java/org/orekit/rugged/atmosphericrefraction/ConstantRefractionLayer.java
+++ b/src/main/java/org/orekit/rugged/atmosphericrefraction/ConstantRefractionLayer.java
@@ -23,18 +23,18 @@ package org.orekit.rugged.atmosphericrefraction;
  */
 public class ConstantRefractionLayer {
     private double lowestAltitude;
-    private double refractionIndex;
+    private double refractiveIndex;
 
-    public ConstantRefractionLayer(double lowestAltitude, double refractionIndex) {
+    public ConstantRefractionLayer(double lowestAltitude, double refractiveIndex) {
         this.lowestAltitude = lowestAltitude;
-        this.refractionIndex = refractionIndex;
+        this.refractiveIndex = refractiveIndex;
     }
 
     public double getLowestAltitude() {
         return lowestAltitude;
     }
 
-    public double getRefractionIndex() {
-        return refractionIndex;
+    public double getRefractiveIndex() {
+        return refractiveIndex;
     }
 }
diff --git a/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java b/src/main/java/org/orekit/rugged/atmosphericrefraction/MultiLayerModel.java
index b1fe1539..64515c0b 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 {
                     // get new los by applying Snell's law at atmosphere layers interfaces
                     // we avoid computing sequences of inverse-trigo/trigo/inverse-trigo functions
                     // we just use linear algebra and square roots, it is faster and more accurate
-                    final double n1On2 = previousRefractionIndex / refractionLayer.getRefractionIndex();
+                    final double n1On2 = previousRefractionIndex / refractionLayer.getRefractiveIndex();
                     final double k     = n1On2 * Vector3D.dotProduct(los, gp.getZenith());
                     los = new Vector3D(n1On2, los,
                                        -k - FastMath.sqrt(1 + k * k - n1On2 * n1On2), gp.getZenith());
@@ -108,7 +108,7 @@ public class MultiLayerModel implements AtmosphericRefraction {
                 pos = ellipsoid.pointAtAltitude(pos, los, refractionLayer.getLowestAltitude());
                 gp = ellipsoid.transform(pos, ellipsoid.getBodyFrame(), null);
 
-                previousRefractionIndex = refractionLayer.getRefractionIndex();
+                previousRefractionIndex = refractionLayer.getRefractiveIndex();
             }
 
             final NormalizedGeodeticPoint newGeodeticPoint  =
-- 
GitLab