Lines Matching defs:d1
341 Geom::Dim2 d1 = static_cast<Geom::Dim2>((_side + 1) % 2);
345 if (Geom::are_near(scc[d1], _origin[d1]))
348 vs[d1] = (new_pos - scc)[d1] / (_origin - scc)[d1];
350 if (fabs(vs[d1]) >= 1.0) {
351 vs[d1] = round(vs[d1]);
353 vs[d1] = 1.0 / round(1.0 / MIN(vs[d1],10));
361 Inkscape::PureStretchConstrained psc = Inkscape::PureStretchConstrained(vs[d1], scc, d1, uniform);
367 vs[d1] = result[d1];
372 vs[d2] = uniform ? fabs(vs[d1]) : 1.0;
506 Geom::Dim2 d1 = static_cast<Geom::Dim2>((_side + 1) % 2);
511 if (fabs(initial_delta[d1]) < 1e-15) {
525 if (fabs(scale[d1]) < 1) {
527 scale[d1] = copysign(1.0, scale[d1]);
530 scale[d1] = floor(scale[d1] + 0.5);
533 double angle = atan(skew[d1] / scale[d1]);
537 skew[d1] = tan(angle) * scale[d1];
542 Inkscape::PureSkewConstrained psc = Inkscape::PureSkewConstrained(skew[d1], scale[d1], scc, d2);
547 skew[d1] = psc.getSkewSnapped(); //best_snapped_point.getTransformation()[0];
555 new_new_pos[d2] = initial_delta[d1] * skew[d1] + _origin[d2];
556 new_new_pos[d1] = initial_delta[d1] * scale[d1] + scc[d1];
560 relative_affine[2*d1 + d1] = (new_new_pos[d1] - scc[d1]) / initial_delta[d1];
561 relative_affine[2*d1 + (d2)] = (new_new_pos[d2] - _origin[d2]) / initial_delta[d1];
562 relative_affine[2*(d2) + (d1)] = 0;