src/views/Rectilinear.js
function(min, max) {
    return function limitHfov(params) {
      var width = params.width;
      var height = params.height;
      if (width > 0 && height > 0) {
        var vmin = convertFov.htov(min, width, height);
        var vmax = convertFov.htov(max, width, height);
        params.fov = clamp(params.fov, vmin, vmax);
      }
      return params;
    };
  }
function(min, max) {
    return function limitHfov(params) {
      var width = params.width;
      var height = params.height;
      if (width > 0 && height > 0) {
        var vmin = convertFov.htov(min, width, height);
        var vmax = convertFov.htov(max, width, height);
        params.fov = clamp(params.fov, vmin, vmax);
      }
      return params;
    };
  }
function ( min , max ) { return function limitHfov ( params ) { var width = params . width ; var height = params . height ; if ( width > 0 && height > 0 ) { var vmin = convertFov . htov ( min , width , height ) ; var vmax = convertFov . htov ( max , width , height ) ; params . fov = clamp ( params . fov , vmin , vmax ) ; } return params ; } ; }
Returns a view limiter that constrains the horizontal field of view.
@param {number} min The minimum horizontal field of view.
@param {number} max The maximum horizontal field of view.
@return {RectilinearViewLimiter}
Returns a view limiter that constrains the horizontal field of view .