NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
Rect.h
1#pragma once
2
3namespace nw4r {
4namespace ut {
5
6struct Rect {
7 Rect(float l, float t, float r, float b) : left(l), top(t), right(r), bottom(b) {}
8
9 float GetWidth() const { return right - left; }
10
11 float GetHeight() const { return bottom - top; }
12
13 float left;
14 float top;
15 float right;
16 float bottom;
17};
18
19} // namespace ut
20} // namespace nw4r
Debugging library which includes various utilities used by the rest of nw4r.
Definition ut_list.cpp:4