Issue #1355 fix bilinear interpolation for grid cells between -1 and 0
Former-commit-id:97ebdae978
[formerly 6ea390529a24a0a74be227b6d1cd6bdf0de7a27b] Former-commit-id:bb2094a69d
This commit is contained in:
parent
4cc389183e
commit
04d67c8932
1 changed files with 2 additions and 2 deletions
|
@ -50,8 +50,8 @@ public class BilinearInterpolation implements Interpolation {
|
|||
double value = 0.0f;
|
||||
double missing = 1.0f;
|
||||
|
||||
int xi = (int) x;
|
||||
int yi = (int) y;
|
||||
int xi = (int) Math.floor(x);
|
||||
int yi = (int) Math.floor(y);
|
||||
// Upper left corner
|
||||
double xWeight = 1 - x + xi;
|
||||
double yWeight = 1 - y + yi;
|
||||
|
|
Loading…
Add table
Reference in a new issue