mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-10 02:50:35 +00:00
some Radar and Hud cleanup; fix in Physical
This commit is contained in:
parent
047fa20f28
commit
a5ba538968
9 changed files with 177 additions and 165 deletions
|
@ -26,4 +26,20 @@ public:
|
|||
if(v.y < top) top = v.y;
|
||||
if(v.y > bottom) bottom = v.y;
|
||||
}
|
||||
|
||||
void Translate(float x, float y){
|
||||
left += x;
|
||||
right += x;
|
||||
bottom += y;
|
||||
top += y;
|
||||
}
|
||||
void Grow(float r){
|
||||
left -= r;
|
||||
right += r;
|
||||
top -= r;
|
||||
bottom += r;
|
||||
}
|
||||
|
||||
float GetWidth(void) { return right - left; }
|
||||
float GetHeight(void) { return bottom - top; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue