OrthographicCamera constructor

OrthographicCamera({
  1. OrthographicProjection? projection,
  2. Vector3? position,
  3. Vector3? target,
  4. Vector3? up,
})

Creates an OrthographicCamera. Defaults match PerspectiveCamera (eye at (0, 0, -5) looking at the origin, +Y up) with a default OrthographicProjection.

Implementation

OrthographicCamera({
  OrthographicProjection? projection,
  Vector3? position,
  Vector3? target,
  Vector3? up,
}) : projection = projection ?? OrthographicProjection(),
     position = position ?? Vector3(0, 0, -5),
     target = target ?? Vector3(0, 0, 0),
     up = up ?? Vector3(0, 1, 0);