From d4ecf2e8493885b12f58fab4ffd85b6af84727ef Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Tue, 19 May 2015 11:30:30 +0200 Subject: [PATCH] Revert "Fixed Newton evaluation." This reverts commit 6c8742ea3dd3d75f9a37de0ca4fe973b925ffe95. --- .../org/orekit/rugged/linesensor/SensorMeanPlaneCrossing.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/orekit/rugged/linesensor/SensorMeanPlaneCrossing.java b/src/main/java/org/orekit/rugged/linesensor/SensorMeanPlaneCrossing.java index a3eb4daa..39f883a1 100644 --- a/src/main/java/org/orekit/rugged/linesensor/SensorMeanPlaneCrossing.java +++ b/src/main/java/org/orekit/rugged/linesensor/SensorMeanPlaneCrossing.java @@ -534,9 +534,9 @@ public class SensorMeanPlaneCrossing { (fMaxLine.getValue() - fMinLine.getValue()); final double newtonExpectedLine; if (linearExpectedLine < midLine) { - newtonExpectedLine = minLine - fMinLine.getValue() / fMinLine.getPartialDerivative(1); + newtonExpectedLine = minLine - fMinLine.getPartialDerivative(1) / fMinLine.getValue(); } else { - newtonExpectedLine = maxLine - fMaxLine.getValue() / fMaxLine.getPartialDerivative(1); + newtonExpectedLine = maxLine - fMaxLine.getPartialDerivative(1) / fMaxLine.getValue(); } throw new InverseLocOutOfLineRangeException(newtonExpectedLine, minLine, maxLine); } catch (RuggedExceptionWrapper rew) { -- GitLab