2 boxes.cc -- implement Box
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 Box::translate (Offset o
)
15 for (Axis i
=X_AXIS
; i
< NO_AXES
; incr(i
))
16 interval_a_
[i
] += o
[i
];
22 for (Axis i
=X_AXIS
; i
< NO_AXES
; incr(i
))
23 interval_a_
[i
].unite (b
[i
]);
36 interval_a_
[X_AXIS
].set_empty ();
37 interval_a_
[Y_AXIS
].set_empty ();
40 Box::Box (Interval ix
, Interval iy
)
47 Box::operator[] (Axis a
)
49 return interval_a_
[a
];
53 Box::operator[] (Axis a
)const
55 return interval_a_
[a
];