PerspectiveCamera constructor

PerspectiveCamera([
  1. num fov = 50,
  2. num aspect = 1,
  3. num near = 0.1,
  4. num far = 2000,
])

Implementation

PerspectiveCamera([num fov = 50, num aspect = 1, num near = 0.1, num far = 2000]) : super() {
  type = "PerspectiveCamera";
  this.fov = fov;
  this.aspect = aspect;
  this.near = near;
  this.far = far;

  updateProjectionMatrix();
}