"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Kernel/Types/rectangles.cpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

rectangles.cpp  (TeXmacs-1.99.4-src):rectangles.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 117 skipping to change at line 117
} }
void void
intersection (rectangle r1, rectangle r2, rectangles& l) { intersection (rectangle r1, rectangle r2, rectangles& l) {
if (!intersect (r1, r2)) return; if (!intersect (r1, r2)) return;
rectangle (max (r1->x1, r2->x1), max (r1->y1, r2->y1), rectangle (max (r1->x1, r2->x1), max (r1->y1, r2->y1),
min (r1->x2, r2->x2), min (r1->y2, r2->y2)) >> l; min (r1->x2, r2->x2), min (r1->y2, r2->y2)) >> l;
} }
rectangle rectangle
least_upper_bound (rectangle r1, rectangle r2) {
return rectangle (min (r1->x1, r2->x1), min (r1->y1, r2->y1),
max (r1->x2, r2->x2), max (r1->y2, r2->y2));
}
rectangle
operator * (rectangle r, int d) { operator * (rectangle r, int d) {
return rectangle (r->x1*d, r->y1*d, r->x2*d, r->y2*d); return rectangle (r->x1*d, r->y1*d, r->x2*d, r->y2*d);
} }
rectangle rectangle
operator * (rectangle r, double x) { operator * (rectangle r, double x) {
return rectangle ((SI) floor (r->x1 * x), (SI) floor (r->y1 * x), return rectangle ((SI) floor (r->x1 * x), (SI) floor (r->y1 * x),
(SI) ceil (r->x2 * x), (SI) ceil (r->y2 * x)); (SI) ceil (r->x2 * x), (SI) ceil (r->y2 * x));
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS