Skip to content

Commit

Permalink
finer epsilons
Browse files Browse the repository at this point in the history
  • Loading branch information
likangning93 committed Jul 2, 2018
1 parent 4c5987f commit 93f5992
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Specs/Core/CircleGeometrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ defineSuite([
});

var r = ellipse.rectangle;
expect(r.north).toEqualEpsilon(0.698966597893341, CesiumMath.EPSILON7);
expect(r.south).toEqualEpsilon(0.698652226072367, CesiumMath.EPSILON7);
expect(r.east).toEqualEpsilon(-1.3192254919753026, CesiumMath.EPSILON7);
expect(r.west).toEqualEpsilon(-1.3196344953554853, CesiumMath.EPSILON7);
expect(r.north).toEqualEpsilon(0.698966597893341, CesiumMath.EPSILON15);
expect(r.south).toEqualEpsilon(0.698652226072367, CesiumMath.EPSILON15);
expect(r.east).toEqualEpsilon(-1.3192254919753026, CesiumMath.EPSILON15);
expect(r.west).toEqualEpsilon(-1.3196344953554853, CesiumMath.EPSILON15);
});

it('computing textureCoordinateRotationPoints property', function() {
Expand Down
8 changes: 4 additions & 4 deletions Specs/Core/RectangleGeometrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ defineSuite([
});

var r = geometry.rectangle;
expect(CesiumMath.toDegrees(r.north)).toEqualEpsilon(1.414213562373095, CesiumMath.EPSILON7);
expect(CesiumMath.toDegrees(r.south)).toEqualEpsilon(-1.414213562373095, CesiumMath.EPSILON7);
expect(CesiumMath.toDegrees(r.east)).toEqualEpsilon(1.414213562373095, CesiumMath.EPSILON7);
expect(CesiumMath.toDegrees(r.west)).toEqualEpsilon(-1.4142135623730951, CesiumMath.EPSILON7);
expect(CesiumMath.toDegrees(r.north)).toEqualEpsilon(1.414213562373095, CesiumMath.EPSILON15);
expect(CesiumMath.toDegrees(r.south)).toEqualEpsilon(-1.414213562373095, CesiumMath.EPSILON15);
expect(CesiumMath.toDegrees(r.east)).toEqualEpsilon(1.414213562373095, CesiumMath.EPSILON15);
expect(CesiumMath.toDegrees(r.west)).toEqualEpsilon(-1.4142135623730951, CesiumMath.EPSILON15);
});

it('computing textureCoordinateRotationPoints property', function() {
Expand Down

0 comments on commit 93f5992

Please sign in to comment.