diff options
Diffstat (limited to 'Runtime/Math/Rect.h')
-rw-r--r-- | Runtime/Math/Rect.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Runtime/Math/Rect.h b/Runtime/Math/Rect.h index 8e7dae6..21a803e 100644 --- a/Runtime/Math/Rect.h +++ b/Runtime/Math/Rect.h @@ -4,6 +4,13 @@ namespace Internal { struct Rect { + Rect(float x=0, float y = 0, float w = 0, float h = 0) + { + this->x = x; + this->y = y; + this->width = w; + this->height = h; + } float x, y, width, height; }; }
\ No newline at end of file |