(cam0, cam1)
| 850 | |
| 851 | suite('slerp()', function() { |
| 852 | const expectCameraMatricesAreClose = function(cam0, cam1) { |
| 853 | for (let i = 0; i < cam0.cameraMatrix.mat4.length; i++) { |
| 854 | expect(cam0.cameraMatrix.mat4[i]) |
| 855 | .to.be.closeTo(cam1.cameraMatrix.mat4[i], 0.001); |
| 856 | } |
| 857 | }; |
| 858 | test('if amt is 0 or 1, the argument camera is set', function() { |
| 859 | myCam = myp5.createCamera(); |
| 860 | const cam0 = myCam.copy(); |