From a6f031f5ba902702137c2caae3e29bcdc4736171 Mon Sep 17 00:00:00 2001 From: bourgesl Date: Thu, 25 Jul 2019 09:32:58 +0200 Subject: [PATCH] fixed comments --- src/main/java/com/sun/marlin/DDasher.java | 6 +++--- src/main/java/com/sun/marlin/Dasher.java | 6 +++--- src/main/java/com/sun/marlin/Helpers.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sun/marlin/DDasher.java b/src/main/java/com/sun/marlin/DDasher.java index 443d850..90ab42f 100644 --- a/src/main/java/com/sun/marlin/DDasher.java +++ b/src/main/java/com/sun/marlin/DDasher.java @@ -433,7 +433,7 @@ private void _lineTo(final double x1, final double y1) { // Advance phase within current dash segment _phase += len; - // compare double values using epsilon: + // compare values using epsilon: if (Math.abs(rem) <= EPS) { _phase = 0.0d; _idx = (_idx + 1) % _dashLen; @@ -513,7 +513,7 @@ public void skipLen() { // Advance phase within current dash segment _phase += len; - // compare double values using epsilon: + // compare values using epsilon: if (Math.abs(rem) <= EPS) { _phase = 0.0d; _idx = (_idx + 1) % _dashLen; @@ -577,7 +577,7 @@ private void somethingTo(final int type) { _phase += _li.lastSegLen(); - // compare double values using epsilon: + // compare values using epsilon: if (_phase + EPS >= _dash[_idx]) { _phase = 0.0d; _idx = (_idx + 1) % _dashLen; diff --git a/src/main/java/com/sun/marlin/Dasher.java b/src/main/java/com/sun/marlin/Dasher.java index 428c217..c2364a5 100644 --- a/src/main/java/com/sun/marlin/Dasher.java +++ b/src/main/java/com/sun/marlin/Dasher.java @@ -434,7 +434,7 @@ private void _lineTo(final float x1, final float y1) { // Advance phase within current dash segment _phase += len; - // compare double values using epsilon: + // compare values using epsilon: if (Math.abs(rem) <= EPS) { _phase = 0.0f; _idx = (_idx + 1) % _dashLen; @@ -514,7 +514,7 @@ public void skipLen() { // Advance phase within current dash segment _phase += len; - // compare double values using epsilon: + // compare values using epsilon: if (Math.abs(rem) <= EPS) { _phase = 0.0f; _idx = (_idx + 1) % _dashLen; @@ -578,7 +578,7 @@ private void somethingTo(final int type) { _phase += _li.lastSegLen(); - // compare double values using epsilon: + // compare values using epsilon: if (_phase + EPS >= _dash[_idx]) { _phase = 0.0f; _idx = (_idx + 1) % _dashLen; diff --git a/src/main/java/com/sun/marlin/Helpers.java b/src/main/java/com/sun/marlin/Helpers.java index a9e38c7..7268265 100644 --- a/src/main/java/com/sun/marlin/Helpers.java +++ b/src/main/java/com/sun/marlin/Helpers.java @@ -251,7 +251,7 @@ static int findSubdivPoints(final Curve c, final float[] pts, final float y12 = pts[3] - pts[1]; // if the curve is already parallel to either axis we gain nothing // from rotating it. - if ((y12 != 0.0f && x12 != 0.0f)) { + if ((y12 != 0.0f) && (x12 != 0.0f)) { // we rotate it so that the first vector in the control polygon is // parallel to the x-axis. This will ensure that rotated quarter // circles won't be subdivided.