added getHight and getWidth to Rect

This commit is contained in:
Djeeberjr 2023-02-04 20:43:39 +01:00
parent d56b871554
commit af8241505f

View File

@ -28,4 +28,12 @@ class Rect {
public function isOutside(p: Pos): Bool {
return !this.isInside(p);
}
public function getHight(): Int {
return tr.y - bl.y;
}
public function getWidth(): Int {
return tr.x - bl.x;
}
}