Lines Matching defs:constraints
277 * The difference is that multipleConstrainedSnaps() will take a list of constraints instead of a single one,
280 * \param constraints List of directions or lines along which snapping must occur
287 std::vector<Inkscape::Snapper::SnapConstraint> const &constraints,
293 if (constraints.size() == 0) {
298 // i.e. lets find out which of the constraints yields the closest projection of point p
300 // Project the mouse pointer on each of the constraints
302 for (std::vector<Inkscape::Snapper::SnapConstraint>::const_iterator c = constraints.begin(); c != constraints.end(); ++c) {
311 Inkscape::Snapper::SnapConstraint cc = constraints.front(); //closest constraint
313 std::vector<Inkscape::Snapper::SnapConstraint>::const_iterator c = constraints.begin();
375 std::vector<Inkscape::Snapper::SnapConstraint> constraints;
376 constraints.push_back(Inkscape::Snapper::SnapConstraint(Geom::Line(o, angle_ceil - M_PI/2)));
377 constraints.push_back(Inkscape::Snapper::SnapConstraint(Geom::Line(o, angle_floor - M_PI/2)));
378 sp = multipleConstrainedSnaps(p, constraints); // Constraints will always be applied, even if we didn't snap
494 std::cout << "Type and number of snapped constraints: " << std::endl;