Use an epsilon in 3d-cube's validation test.

To allow for differences in precision among Math.sin permitted by the JS
standard, accept values within an epsilon.