From 76cb218ccea3bf222bd6bd50d9605809f54338a8 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 14 May 2024 11:20:20 +0530 Subject: [PATCH] Prune --- web/apps/photos/src/services/ml/geom.ts | 26 +++---------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/web/apps/photos/src/services/ml/geom.ts b/web/apps/photos/src/services/ml/geom.ts index e24fdc6698..1cf51963cf 100644 --- a/web/apps/photos/src/services/ml/geom.ts +++ b/web/apps/photos/src/services/ml/geom.ts @@ -58,32 +58,12 @@ export class Box implements IRect { this.height = height; } - public get left(): number { - return this.x; - } - public get top(): number { - return this.y; - } - public get right(): number { - return this.x + this.width; - } - public get bottom(): number { - return this.y + this.height; - } - public get area(): number { - return this.width * this.height; - } public get topLeft(): Point { - return new Point(this.left, this.top); - } - public get topRight(): Point { - return new Point(this.right, this.top); - } - public get bottomLeft(): Point { - return new Point(this.left, this.bottom); + return new Point(this.x, this.y); } + public get bottomRight(): Point { - return new Point(this.right, this.bottom); + return new Point(this.x + this.width, this.y + this.height); } public round(): Box {