Lines Matching defs:cx
795 double const cx = 0.5 * (x0 + x1);
823 x0 = cx - 0.5 * viewbox.dimensions()[Geom::X] / newscale;
960 SPDesktop::zoom_absolute_keep_point (double cx, double cy, double px, double py, double zoom)
975 set_display_area(cx - px * width2,
977 cx + (1 - px) * width2,
1006 SPDesktop::zoom_absolute (double cx, double cy, double zoom)
1008 zoom_absolute_keep_point (cx, cy, 0.5, 0.5, zoom);
1015 SPDesktop::zoom_relative_keep_point (double cx, double cy, double zoom)
1019 if (cx < area.min()[Geom::X]) {
1020 cx = area.min()[Geom::X];
1022 if (cx > area.max()[Geom::X]) {
1023 cx = area.max()[Geom::X];
1033 double const px = (cx - area.min()[Geom::X]) / area.dimensions()[Geom::X];
1036 zoom_absolute_keep_point(cx, cy, px, py, scale);
1043 SPDesktop::zoom_relative (double cx, double cy, double zoom)
1046 zoom_absolute (cx, cy, scale);