repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-0.0.3
[lilypond.git]
/
boxes.cc
blob
e55af6c6f5ac9ad02ea725ac03bfbe42c4d956d2
1
#include
"boxes.hh"
2
#include
"const.hh"
3
4
void
5
Interval
::
set_empty
() {
6
min
=
INFTY
;
7
max
= -
INFTY
;
8
}
9
10
Box
::
Box
(
svec
<
Real
>
s
)
11
{
12
assert
(
s
.
sz
() ==
4
);
13
x
.
min
=
s
[
0
];
14
x
.
max
=
s
[
1
];
15
y
.
min
=
s
[
2
];
16
y
.
max
=
s
[
3
];
17
}
18
19
Box
::
Box
()
20
{
21
}
22
Box
::
Box
(
Interval ix
,
Interval iy
)
23
{
24
x
=
ix
;
25
y
=
iy
;
26
}