]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/box.cc
* lily/include/translator.icc: new file.
[lilypond.git] / lily / box.cc
index 5463abef8633e85cbc5e5c6c0f35f80bbf3a42ba..c933c1bc05fdde4c99e0a19ae435b45e90573f18 100644 (file)
@@ -3,11 +3,10 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "box.hh"
-
 #include "array.hh"
 
 void
@@ -25,17 +24,17 @@ Box::unite (Box b)
 }
 
 /**
-  Initialize to empty.
- */
+   Initialize to empty.
+*/
 Box::Box ()
-{        
+{
 }
 
 void
 Box::set_empty ()
 {
   interval_a_[X_AXIS].set_empty ();
-  interval_a_[Y_AXIS].set_empty (); 
+  interval_a_[Y_AXIS].set_empty ();
 }
 
 Box::Box (Interval ix, Interval iy)
@@ -45,13 +44,13 @@ Box::Box (Interval ix, Interval iy)
 }
 
 Interval &
-Box::operator[] (Axis a)
+Box::operator [] (Axis a)
 {
   return interval_a_[a];
 }
 
 Interval
-Box::operator[] (Axis a)const
+Box::operator [] (Axis a) const
 {
   return interval_a_[a];
 }
@@ -67,15 +66,16 @@ void
 Box::add_point (Offset o)
 {
   interval_a_[X_AXIS].add_point (o[X_AXIS]);
-  interval_a_[Y_AXIS].add_point (o[Y_AXIS]);  
+  interval_a_[Y_AXIS].add_point (o[Y_AXIS]);
 }
 
 Offset
 Box::center () const
 {
   return Offset (interval_a_[X_AXIS].center (),
-                interval_a_[Y_AXIS].center ()); 
+                interval_a_[Y_AXIS].center ());
 }
+
 void
 Box::widen (Real x, Real y)
 {