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 cae84330d29b224d419908824048efeb0b962dfa..a05223264e5f8cc068041a11408be1f3fa70334e 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 @@ -340,7 +340,7 @@ public class SimpleTile implements Tile { final double dx = dxP + t * los.getX() / longitudeStep; final double dy = dyP + t * los.getY() / latitudeStep; - if (dx >= 0 && dx <= 1 && dy >= 0 && dy <= 1) { + if (dx >= -TOLERANCE && dx <= 1 + TOLERANCE && dy >= -TOLERANCE && dy <= 1 + TOLERANCE) { return new GeodeticPoint(p.getLatitude() + t * los.getY(), p.getLongitude() + t * los.getX(), p.getAltitude() + t * los.getZ());