| 72407 | if (possiblyDegrees > Math.PI * 2) throw Error("expected radians"); |
| 72408 | } |
| 72409 | function computeInfinitePerspectiveOffCenter(result, left, right, bottom, top, near) { |
| 72410 | const column0Row0 = 2 * near / (right - left); |
| 72411 | const column1Row1 = 2 * near / (top - bottom); |
| 72412 | const column2Row0 = (right + left) / (right - left); |
| 72413 | const column2Row1 = (top + bottom) / (top - bottom); |
| 72414 | const column2Row2 = -1; |
| 72415 | const column2Row3 = -1; |
| 72416 | const column3Row2 = -2 * near; |
| 72417 | result[0] = column0Row0; |
| 72418 | result[1] = 0; |
| 72419 | result[2] = 0; |
| 72420 | result[3] = 0; |
| 72421 | result[4] = 0; |
| 72422 | result[5] = column1Row1; |
| 72423 | result[6] = 0; |
| 72424 | result[7] = 0; |
| 72425 | result[8] = column2Row0; |
| 72426 | result[9] = column2Row1; |
| 72427 | result[10] = column2Row2; |
| 72428 | result[11] = column2Row3; |
| 72429 | result[12] = 0; |
| 72430 | result[13] = 0; |
| 72431 | result[14] = column3Row2; |
| 72432 | result[15] = 0; |
| 72433 | return result; |
| 72434 | } |
| 72435 | |
| 72436 | },{"./base/matrix":"9lGqT","../lib/validators":"d22Rk","../lib/gl-matrix-extras":"cONlx","gl-matrix/mat4":"aI9zp","gl-matrix/vec2":"29QfU","gl-matrix/vec3":"4RBb8","gl-matrix/vec4":"9M1lU","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"aI9zp":[function(require,module,exports) { |
| 72437 | var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); |