This commit is contained in:
2025-02-02 15:45:40 -08:00
parent c095da2492
commit 9585f5ae95
6 changed files with 133 additions and 50 deletions

View File

@ -80,6 +80,10 @@ export class Size {
this.w = w;
this.h = h;
}
add(other: Size) {
return new Size(this.w + other.w, this.h + other.h);
}
}
export class Rect {