LEFT | RIGHT |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2012--2020 Mike Solomon <mike@mikesolomon.org> | 4 Copyright (C) 2012--2020 Mike Solomon <mike@mikesolomon.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 becomes this matrix: | 26 becomes this matrix: |
27 [ a c e ] | 27 [ a c e ] |
28 [ b d f ] | 28 [ b d f ] |
29 [ 0 0 1 ] | 29 [ 0 0 1 ] |
30 when this transforms a point (x,y), the point is written as matrix: | 30 when this transforms a point (x,y), the point is written as matrix: |
31 [ x ] | 31 [ x ] |
32 [ y ] | 32 [ y ] |
33 [ 1 ] | 33 [ 1 ] |
34 */ | 34 */ |
35 | 35 |
36 // Need M_PI from math.h header. | 36 // Needed because of extension definitions for POSIX functions. |
37 #define _POSIX_SOURCE | 37 #include "config.hh" |
38 | 38 |
39 #include "box.hh" | 39 #include "box.hh" |
40 #include "bezier.hh" | 40 #include "bezier.hh" |
41 #include "dimensions.hh" | 41 #include "dimensions.hh" |
42 #include "font-metric.hh" | 42 #include "font-metric.hh" |
43 #include "grob.hh" | 43 #include "grob.hh" |
44 #include "interval.hh" | 44 #include "interval.hh" |
45 #include "freetype.hh" | 45 #include "freetype.hh" |
46 #include "misc.hh" | 46 #include "misc.hh" |
47 #include "offset.hh" | 47 #include "offset.hh" |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 | 1213 |
1214 MAKE_SCHEME_CALLBACK (Grob, pure_horizontal_skylines_from_element_stencils, 3); | 1214 MAKE_SCHEME_CALLBACK (Grob, pure_horizontal_skylines_from_element_stencils, 3); |
1215 SCM | 1215 SCM |
1216 Grob::pure_horizontal_skylines_from_element_stencils (SCM smob, SCM beg_scm, SCM
end_scm) | 1216 Grob::pure_horizontal_skylines_from_element_stencils (SCM smob, SCM beg_scm, SCM
end_scm) |
1217 { | 1217 { |
1218 Grob *me = unsmob<Grob> (smob); | 1218 Grob *me = unsmob<Grob> (smob); |
1219 int beg = robust_scm2int (beg_scm, 0); | 1219 int beg = robust_scm2int (beg_scm, 0); |
1220 int end = robust_scm2int (end_scm, 0); | 1220 int end = robust_scm2int (end_scm, 0); |
1221 return internal_skylines_from_element_stencils (me, Y_AXIS, true, beg, end); | 1221 return internal_skylines_from_element_stencils (me, Y_AXIS, true, beg, end); |
1222 } | 1222 } |
LEFT | RIGHT |