From 77ed944b3c87b2b1c8d9066444bbc00f87d1949f Mon Sep 17 00:00:00 2001 From: Didier Le Botlan Date: Tue, 7 Mar 2023 11:30:34 +0100 Subject: [PATCH] Fix Point --- .../src/main/java/org/insa/graphs/model/Point.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/be-graphes-model/src/main/java/org/insa/graphs/model/Point.java b/be-graphes-model/src/main/java/org/insa/graphs/model/Point.java index 39ca3b1..bbb6770 100644 --- a/be-graphes-model/src/main/java/org/insa/graphs/model/Point.java +++ b/be-graphes-model/src/main/java/org/insa/graphs/model/Point.java @@ -31,9 +31,7 @@ public final class Point { if (koef >= 1.0) { koef = 1.0 ; } if (koef <= -1.0) { koef = -1.0 ; } - res = EARTH_RADIUS * Math.acos(koef) ; - - return res + return (EARTH_RADIUS * Math.acos(koef)) ; } // Longitude and latitude of the point.