OrthographicCamera constructor

OrthographicCamera([
  1. num left = -1,
  2. num right = 1,
  3. num top = 1,
  4. num bottom = -1,
  5. num near = 0.1,
  6. num far = 2000,
])

Implementation

OrthographicCamera(
    [num left = -1,
    num right = 1,
    num top = 1,
    num bottom = -1,
    num near = 0.1,
    num far = 2000])
    : super() {
  type = 'OrthographicCamera';
  zoom = 1;

  view = null;

  this.left = left;
  this.right = right;
  this.top = top;
  this.bottom = bottom;

  this.near = near;
  this.far = far;

  updateProjectionMatrix();
}