sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] branch geoapi-4.0 updated: Checkstyle correction.
Date Fri, 03 Apr 2020 16:39:17 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new 6d07eb4  Checkstyle correction.
6d07eb4 is described below

commit 6d07eb4536603853d7b4ded8adef47de5341f4c6
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Fri Apr 3 18:39:04 2020 +0200

    Checkstyle correction.
---
 .../src/main/java/org/apache/sis/image/ResamplingGrid.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/sis-feature/src/main/java/org/apache/sis/image/ResamplingGrid.java b/core/sis-feature/src/main/java/org/apache/sis/image/ResamplingGrid.java
index f74aec3..4f6df17 100644
--- a/core/sis-feature/src/main/java/org/apache/sis/image/ResamplingGrid.java
+++ b/core/sis-feature/src/main/java/org/apache/sis/image/ResamplingGrid.java
@@ -191,10 +191,10 @@ final class ResamplingGrid extends AbstractMathTransform2D {
             final int p11 = p10 + DIMENSION;
             final double mx = 1 - x;
             final double my = 1 - y;
-            dstPts[dstOff++] = my * (mx*coordinates[p00  ] + x*coordinates[p01  ])
-                             +  y * (mx*coordinates[p10  ] + x*coordinates[p11  ]);
-            dstPts[dstOff++] = my * (mx*coordinates[p00|1] + x*coordinates[p01|1])
-                             +  y * (mx*coordinates[p10|1] + x*coordinates[p11|1]);
+            dstPts[dstOff++] = my * (mx*coordinates[p00    ] + x*coordinates[p01    ])
+                             +  y * (mx*coordinates[p10    ] + x*coordinates[p11    ]);
+            dstPts[dstOff++] = my * (mx*coordinates[p00 | 1] + x*coordinates[p01 | 1])
+                             +  y * (mx*coordinates[p10 | 1] + x*coordinates[p11 | 1]);
             /*
              * Note: the |1 above is a cheap way to compute +1 when all `p` indices
              * are known to be even. This is true because `DIMENSION` is even.


Mime
View raw message