diff --git a/src/lib/Rect.hx b/src/lib/Rect.hx index 24ca205..0047167 100644 --- a/src/lib/Rect.hx +++ b/src/lib/Rect.hx @@ -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; + } }