Rect class GetX, GetY, GetW, GetH now exist for camera calculations in the future
This commit is contained in:
@@ -116,6 +116,22 @@ int Rect::Area() {
|
||||
return (w + h);
|
||||
}
|
||||
|
||||
int Rect::GetX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
int Rect::GetY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
int Rect::GetW() {
|
||||
return w;
|
||||
}
|
||||
|
||||
int Rect::GetH() {
|
||||
return h;
|
||||
}
|
||||
|
||||
void Rect::SetRect(int x, int y, int w, int h) {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
|
||||
@@ -50,6 +50,11 @@ public:
|
||||
int Perimiter();
|
||||
int Area();
|
||||
|
||||
int GetX();
|
||||
int GetY();
|
||||
int GetW();
|
||||
int GetH();
|
||||
|
||||
void SetRect(int x, int y, int w, int h);
|
||||
void SetSize(Vec2* size);
|
||||
void SetPos(Vec2* pos);
|
||||
|
||||
Reference in New Issue
Block a user