export class Size { constructor(m21, n21) { this.width = m21; this.height = n21; } getArea() { return this.width * this.height; } getRote() { return this.width / this.height; } equals(l21) { return this.width == l21.width && this.height == l21.height; } swap() { return new Size(this.height, this.width); } sizeForCamera() { return new Size(Math.max(this.height, this.width), Math.min(this.height, this.width)); } sizeForLandSpace() { return new Size(Math.min(this.height, this.width), Math.max(this.height, this.width)); } toString() { return `{width: ${this.width} height: ${this.height} }`; } } 