src/bbox.h

changeset 268
778eed342ee4
parent 266
12e7302f14e9
child 359
bcdfc801658b
equal deleted inserted replaced
267:95fde37e1f00 268:778eed342ee4
38 bbox (); 38 bbox ();
39 void reset (); 39 void reset ();
40 void calculate (); 40 void calculate ();
41 double size () const; 41 double size () const;
42 void calcObject (LDObject* obj); 42 void calcObject (LDObject* obj);
43 void calcVertex (vertex v); 43 void calcVertex (const vertex& v);
44 vertex center () const; 44 vertex center () const;
45 45
46 bbox& operator<< (LDObject* obj) { 46 bbox& operator<< (LDObject* obj) {
47 calcObject (obj); 47 calcObject (obj);
48 return *this; 48 return *this;
49 } 49 }
50 50
51 bbox& operator<< (vertex& v) { 51 bbox& operator<< (const vertex& v) {
52 calcVertex (v); 52 calcVertex (v);
53 return *this; 53 return *this;
54 } 54 }
55 }; 55 };
56 56

mercurial