Skip to content
Snippets Groups Projects
Commit 439112af authored by sesteves's avatar sesteves
Browse files

bug fix

parent b904f070
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ public class MultiLayerModel implements AtmosphericRefraction {
if (previousRefractionIndex > 0) {
// get new los
final double theta1 = Vector3D.angle(los, zenith);
final double theta1 = FastMath.toRadians(Vector3D.angle(los, zenith));
final double theta2 = FastMath.asin(previousRefractionIndex * FastMath.sin(theta1) /
refractionLayer.getRefractionIndex());
......
......@@ -49,8 +49,6 @@ public class MultiLayerModelTest extends AbstractAlgorithmTest {
double distance = Vector3D.distance(earth.transform(rawIntersection), earth.transform(correctedIntersection));
System.out.println("DISTANCE: " + distance);
// with the current code, this check fails, the distance is about 800m instead of a couple meters
Assert.assertEquals(0.0, distance, 2.0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment