added getHight and getWidth to Rect
This commit is contained in:
parent
d56b871554
commit
af8241505f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user