Skip to content

Commit

Permalink
fixed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Jul 25, 2019
1 parent c113828 commit a6f031f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/sun/marlin/DDasher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/sun/marlin/Dasher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sun/marlin/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a6f031f

Please sign in to comment.