diff --git a/src/zm_box.h b/src/zm_box.h index 22210f2f8..12e44cb94 100644 --- a/src/zm_box.h +++ b/src/zm_box.h @@ -36,6 +36,8 @@ class Box { const Vector2 &Lo() const { return lo_; } const Vector2 &Hi() const { return hi_; } + unsigned int Width() const { return hi_.x_ - lo_.x_; } + unsigned int Height() const { return hi_.y_ - lo_.y_; } const Vector2 &Size() const { return size_; } int32 Area() const { return size_.x_ * size_.y_; }