text: import Rectangle from './Rectangle.js';
  
  export default class Camera extends Rectangle{
      resolution = 1;
      antialias = false;
      lastPosition = {x: 0, y: 0, rotation: 0}
  
      constructor(width, height) {
          super(width, height);
      }
  
      update() {
          this.lastPosition.x = this.position.x;
          this.lastPosition.y = this.position.y;
          this.lastPosition.rotation = this.position.rotation;
          super.update();
      }
  
      reset() {
          this.resolution = 1;
          this.antialias = false;
          this.position = {x: 0, y: 0, rotation: 0}
          this.velocity = {x: 0, y: 0, rotation: 0}
          this.acceleration = {x: 0, y: 0, rotation: 0}
          this.drag = 0;
      }
  }