You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {mat4} out mat4 frustum matrix will be written into
* @param {number} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees
* @param {number} near Near bound of the frustum
* @param {number} far Far bound of the frustum
* @returns {mat4} out
*/
mat4.perspectiveFromFieldOfView = function (out, fov, near, far) {
var upTan = Math.tan(fov.upDegrees * Math.PI/180.0),
downTan = Math.tan(fov.downDegrees * Math.PI/180.0),
leftTan = Math.tan(fov.leftDegrees * Math.PI/180.0),
rightTan = Math.tan(fov.rightDegrees * Math.PI/180.0),
xScale = 2.0 / (leftTan + rightTan),
yScale = 2.0 / (upTan + downTan);
{number} fov Object containing the following values: upDegrees, downDegrees - number is not object =)
Need make object fov.
Same bug and in gl-matrix.d.ts =(
The text was updated successfully, but these errors were encountered:
https://github.com/toji/gl-matrix/blob/master/src/gl-matrix/mat4.js#L1733-L1739
{number} fov Object containing the following values: upDegrees, downDegrees
- number is not object =)Need make object fov.
Same bug and in gl-matrix.d.ts =(
The text was updated successfully, but these errors were encountered: