Skip to content

Commit

Permalink
Fix unit tests for bounding spheres.
Browse files Browse the repository at this point in the history
  • Loading branch information
emackey committed Jan 23, 2017
1 parent eee16fa commit 3df7dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Specs/createDynamicGeometryBoundingSphereSpecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ define([
var primitive = scene.primitives.get(0);
expect(state).toBe(BoundingSphereState.DONE);
var attributes = primitive.getGeometryInstanceAttributes(entity);
expect(result).toEqualEpsilon(BoundingSphere.transform(attributes.boundingSphere, primitive.modelMatrix, new BoundingSphere()), CesiumMath.EPSILON6);
expect(result).toEqualEpsilon(attributes.boundingSphere, CesiumMath.EPSILON6);

updater.destroy();
scene.primitives.removeAll();
Expand All @@ -62,7 +62,7 @@ define([
var primitive = scene.primitives.get(0);
expect(state).toBe(BoundingSphereState.DONE);
var attributes = primitive.getGeometryInstanceAttributes(entity);
expect(result).toEqualEpsilon(BoundingSphere.transform(attributes.boundingSphere, primitive.modelMatrix, new BoundingSphere()), CesiumMath.EPSILON6);
expect(result).toEqualEpsilon(attributes.boundingSphere, CesiumMath.EPSILON6);

updater.destroy();
scene.primitives.removeAll();
Expand Down

0 comments on commit 3df7dea

Please sign in to comment.