PerspectiveCamera constructor

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

fov — Camera frustum vertical field of view.

aspect — Camera frustum aspect ratio.

near — Camera frustum near plane.

far — Camera frustum far plane.

Together these define the camera's viewing frustum.

Implementation

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

  updateProjectionMatrix();
}