Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgesl committed Jan 12, 2020
1 parent 606346a commit ce0cdf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/marlin/pisces/DHelpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

final class DHelpers implements MarlinConst {

private static final double EPS = 1e-6d;
private static final double EPS = 1e-9d;

private DHelpers() {
throw new Error("This is a non instantiable class");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/marlin/pisces/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

final class Helpers implements MarlinConst {

private static final float EPS = 1e-6f;
private static final float EPS = 1e-9f;

private Helpers() {
throw new Error("This is a non instantiable class");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/marlin/pisces/Stroker.java
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ private int computeOffsetCubic(final float[] pts, final int off,

// if p1 == p2 && p3 == p4: draw line from p1->p4, unless p1 == p4,
// in which case ignore if p1 == p2
final boolean p1eqp2 = Helpers.withinD(dx34, dy12, 6.0f * Math.ulp(y2));
final boolean p1eqp2 = Helpers.withinD(dx12, dy12, 6.0f * Math.ulp(y2));
final boolean p3eqp4 = Helpers.withinD(dx34, dy34, 6.0f * Math.ulp(y4));

if (p1eqp2 && p3eqp4) {
Expand Down

0 comments on commit ce0cdf5

Please sign in to comment.