Searched defs:target_pt (Results 1 - 1 of 1) sorted by relevance

/inkscape/src/
H A Dobject-snapper.cpp295 Geom::Point target_pt = (*k).getPoint(); local
296 Geom::Coord dist = Geom::L2(target_pt - p.getPoint()); // Default: free (unconstrained) snapping
300 if (Geom::L2(target_pt - c.projection(target_pt)) > 1e-9) {
305 dist = Geom::L2(target_pt - p_proj_on_constraint);
309 s = SnappedPoint(target_pt, p.getSourceType(), p.getSourceNum(), (*k).getTargetType(), dist, getSnapperTolerance(), getSnapperAlwaysSnap(), false, true, (*k).getTargetBBox());
337 Geom::Point target_pt = (*k).getPoint(); local
339 Geom::Point p_proj = Geom::projection(target_pt, Geom::Line(p, p + Geom::rot90(guide_normal)));
340 Geom::Coord dist = Geom::L2(target_pt - p_proj); // distance from node to the guide
343 s = SnappedPoint(target_pt, SNAPSOURCE_GUID
[all...]

Completed in 163 milliseconds