2 some 2D geometrical concepts
14 Interval interval_a_[NO_AXES];
15 DECLARE_SIMPLE_SMOBS (Box);
17 Interval &x () {return interval_a_[X_AXIS]; }
18 Interval &y () { return interval_a_[Y_AXIS]; }
19 Interval x () const { return interval_a_[X_AXIS]; }
20 Interval y () const {return interval_a_[Y_AXIS]; }
21 Interval operator [] (Axis a) const;
22 Interval &operator [] (Axis a);
24 bool is_empty () const;
26 Offset center () const;
28 void translate (Offset o);
30 /// smallest box enclosing #b#
32 void add_point (Offset);
33 void widen (Real x, Real y);
36 void intersect (Box b);
39 Box (Interval ix, Interval iy);
42 DECLARE_UNSMOB (Box, box);