Camera constructor

Camera({
  1. Vector3? position,
  2. Vector3? target,
  3. Vector3? up,
  4. double fov = 60.0,
  5. double near = 0.1,
  6. double far = 1000,
  7. double zoom = 1.0,
  8. double viewportWidth = 100.0,
  9. double viewportHeight = 100.0,
})

Implementation

Camera({
  Vector3? position,
  Vector3? target,
  Vector3? up,
  this.fov = 60.0,
  this.near = 0.1,
  this.far = 1000,
  this.zoom = 1.0,
  this.viewportWidth = 100.0,
  this.viewportHeight = 100.0,
}) {
  if (position != null) position.copyInto(this.position);
  if (target != null) target.copyInto(this.target);
  if (up != null) up.copyInto(this.up);
}