Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
rect.h
1#pragma once
2#include <meteorutils/vector2d.h>
3
4namespace meteor {
8 struct SRect {
9 public:
10 SRect() {
11 position.x = position.y = 0;
12 size.x = size.y = 1;
13 }
14
15 SRect(SVector2 position, SVector2 size) {
16 this->position = position;
17 this->size = size;
18 }
19
20 SVector2 position;
21 SVector2 size;
22 };
23}
A struct representing rectangle.
Definition rect.h:8
A structure representing a 2D Vector.
Definition vector2d.h:11