2 boxes.cc -- implement Box
4 source file of the GNU LilyPond music typesetter
6 (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.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
]);
33 Box::Box (Interval ix
, Interval iy
)
40 Box::operator[] (Axis a
)
42 return interval_a_
[a
];
46 Box::operator[] (Axis a
)const
48 return interval_a_
[a
];