From 1ccd1ef738539bba9c4731ee281ce309473ea2f6 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe <luc@orekit.org>
Date: Tue, 18 Mar 2014 17:31:16 +0100
Subject: [PATCH] Renamed local variables.

---
 .../java/org/orekit/rugged/core/raster/SimpleTile.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rugged-core/src/main/java/org/orekit/rugged/core/raster/SimpleTile.java b/rugged-core/src/main/java/org/orekit/rugged/core/raster/SimpleTile.java
index 2e619057..9778429c 100644
--- a/rugged-core/src/main/java/org/orekit/rugged/core/raster/SimpleTile.java
+++ b/rugged-core/src/main/java/org/orekit/rugged/core/raster/SimpleTile.java
@@ -232,11 +232,11 @@ public class SimpleTile implements Tile {
         final double dLat = doubleLatitudeIndex  - latitudeIndex;
         final double dLon = doubleLongitudeIndex - longitudeIndex;
         final double e00  = getElevationAtIndices(latitudeIndex,     longitudeIndex);
-        final double e01  = getElevationAtIndices(latitudeIndex,     longitudeIndex + 1);
-        final double e10  = getElevationAtIndices(latitudeIndex + 1, longitudeIndex);
+        final double e10  = getElevationAtIndices(latitudeIndex,     longitudeIndex + 1);
+        final double e01  = getElevationAtIndices(latitudeIndex + 1, longitudeIndex);
         final double e11  = getElevationAtIndices(latitudeIndex + 1, longitudeIndex + 1);
-        return (e00 * (1.0 - dLon) + dLon * e01) * (1.0 - dLat) +
-               (e10 * (1.0 - dLon) + dLon * e11) * dLat;
+        return (e00 * (1.0 - dLon) + dLon * e10) * (1.0 - dLat) +
+               (e01 * (1.0 - dLon) + dLon * e11) * dLat;
 
     }
 
-- 
GitLab