mirror of
https://github.com/halpz/re3.git
synced 2025-07-22 10:39:47 +00:00
some Radar and Hud cleanup; fix in Physical
This commit is contained in:
@ -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; }
|
||||
};
|
||||
|
Reference in New Issue
Block a user