Camera constructor

Camera(
  1. {Vector2? size,
  2. Vector2? position,
  3. Vector2? origin,
  4. double scale = 1.0}
)

Implementation

Camera({
  Vector2? size,
  Vector2? position,
  Vector2? origin,
  this.scale = 1.0,
})  : this.originalSize = size?.clone() ?? Vector2(double.infinity, 5.0),
      this.size = size ?? Vector2(double.infinity, 5.0),
      this.position = position ?? Vector2.zero(),
      this.origin = origin ?? Vector2.zero();