some Radar and Hud cleanup; fix in Physical

This commit is contained in:
aap
2019-06-23 13:11:41 +02:00
parent 047fa20f28
commit a5ba538968
9 changed files with 177 additions and 165 deletions

View File

@ -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; }
};