#include <iosfwd>
+#include "math/vector.hpp"
+
class Size;
class Sizef
height(0.0f)
{}
+ Sizef(const Vector& v) :
+ width(v.x),
+ height(v.y)
+ {}
+
Sizef(float width_, float height_) :
width(width_),
height(height_)
return *this;
}
+ Vector as_vector() const
+ {
+ return Vector(width, height);
+ }
+
public:
float width;
float height;