Merge "Issue #1355 fix bilinear interpolation for grid cells between -1 and 0" into development
Former-commit-id:67057e0950
[formerlyb49b580840
] [formerly8a28f8e4fc
] [formerly 11d484ff9e9f9c9d9bdcd0e8b90d8b4bd03c9b79 [formerly8a28f8e4fc
[formerly14dcf86cab
]]] [formerly684a1ddfd7
[formerly8a28f8e4fc
[formerly14dcf86cab
] [formerly684a1ddfd7
[formerly 8b5edb90f02c7beb3048dfbeb51c6fcb3209295e]]]] Former-commit-id:684a1ddfd7
Former-commit-id: 3ffa78512b96e9375628776a416f656cd0e8aeb5 [formerly f48c002040209c39771a712f273f22efb1595f49] [formerlye8e5835045
[formerly32ab58f7b3
]] Former-commit-id:e8e5835045
Former-commit-id:afe977e91e
This commit is contained in:
commit
298e665546
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