raze/source/common/utility/floatrect.h
2020-05-24 16:46:31 +02:00

21 lines
244 B
C

#pragma once
struct FloatRect
{
float left,top;
float width,height;
void Offset(float xofs,float yofs)
{
left+=xofs;
top+=yofs;
}
void Scale(float xfac,float yfac)
{
left*=xfac;
width*=xfac;
top*=yfac;
height*=yfac;
}
};