+bool Geometry::is_inside_relative(int x_, int y_) const
+{
+ return (x_>=0 && x_<static_cast<int>(w) && y_>=0 && y_<static_cast<int>(h));
+}
+
+
+Sides::Sides(unsigned s):
+ top(s),
+ right(s),
+ bottom(s),
+ left(s)
+{ }
+
+Sides::Sides(unsigned v, unsigned h):
+ top(v),
+ right(h),
+ bottom(v),
+ left(h)
+{ }
+
+Sides::Sides(unsigned t, unsigned h, unsigned b):
+ top(t),
+ right(h),
+ bottom(b),
+ left(h)
+{ }