Lines Matching defs:snapped_point

66         Inkscape::SnappedPoint snapped_point = snap(sm, *j, (*i).getPoint(), bbox); // Calls the snap() method of the derived classes
68 // std::cout << "dist = " << snapped_point.getSnapDistance() << std::endl;
69 snapped_point.setPointerDistance(Geom::L2(pointer - (*i).getPoint()));
76 if (snapped_point.getSnapped()) {
78 if (best_snapped_point.isOtherSnapBetter(snapped_point, true)) {
88 if (best_snapped_point.isOtherSnapBetter(snapped_point, true) || points.size() == 1) {
97 best_snapped_point = snapped_point;
122 void PureTranslate::storeTransform(SnapCandidatePoint const original_point, SnappedPoint const snapped_point) {
134 _vector_snapped = snapped_point.getPoint() - original_point.getPoint();
159 void PureScale::storeTransform(SnapCandidatePoint const original_point, SnappedPoint snapped_point) {
166 Geom::Point const a = snapped_point.getPoint() - _origin; // vector to snapped point
195 snapped_point.setSnapDistance(Geom::L2(scale_metric));
196 snapped_point.setSecondSnapDistance(Geom::infinity());
256 void PureStretchConstrained::storeTransform(SnapCandidatePoint const original_point, SnappedPoint snapped_point) {
257 Geom::Point const a = snapped_point.getPoint() - _origin; // vector to snapped point
274 snapped_point.setSnapDistance(std::abs(_stretch_snapped[_direction] - _magnitude));
275 snapped_point.setSecondSnapDistance(Geom::infinity());
307 void PureSkewConstrained::storeTransform(SnapCandidatePoint const original_point, SnappedPoint snapped_point) {
309 _skew_snapped = (snapped_point.getPoint()[_direction] - (original_point.getPoint())[_direction]) / b[1 - _direction]; // skew factor
312 snapped_point.setSnapDistance(std::abs(_skew_snapped - _skew));
313 snapped_point.setSecondSnapDistance(Geom::infinity());
338 void PureRotateConstrained::storeTransform(SnapCandidatePoint const original_point, SnappedPoint snapped_point) {
339 Geom::Point const a = snapped_point.getPoint() - _origin; // vector to snapped point
346 snapped_point.setSnapDistance(Geom::infinity());
353 snapped_point.setSnapDistance(fabs(_angle_snapped - _angle));
355 snapped_point.setSecondSnapDistance(Geom::infinity());