summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ebb104d)
raw | patch | inline | side by side (parent: ebb104d)
author | cth103 <cth103@users.sourceforge.net> | |
Wed, 3 May 2006 11:17:16 +0000 (11:17 +0000) | ||
committer | cth103 <cth103@users.sourceforge.net> | |
Wed, 3 May 2006 11:17:16 +0000 (11:17 +0000) |
src/snap.cpp | patch | blob | history | |
src/snap.h | patch | blob | history |
diff --git a/src/snap.cpp b/src/snap.cpp
index 592c65fec3280b94708a70864d11ac28df4cb91b..940d4c77208c6f17f898423baf692080a67892d0 100644 (file)
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -250,37 +250,6 @@ NR::Coord namedview_vector_snap(SPNamedView const *nv, Inkscape::Snapper::PointT
* They return the updated transformation parameter.
*/
-/**
- * Snap list of points in one dimension.
- * \return Coordinate difference.
- */
-std::pair<NR::Coord, bool> namedview_dim_snap_list(SPNamedView const *nv, Inkscape::Snapper::PointType t,
- const std::vector<NR::Point> &p,
- NR::Coord const dx, NR::Dim2 const dim,
- std::list<SPItem const *> const &it
- )
-{
- NR::Coord dist = NR_HUGE;
- NR::Coord xdist = dx;
-
- SnapManager const &m = nv->snap_manager;
-
- if (m.willSnapSomething()) {
- for (std::vector<NR::Point>::const_iterator i = p.begin(); i != p.end(); i++) {
- NR::Point q = *i;
- NR::Coord const pre = q[dim];
- q[dim] += dx;
- NR::Coord const d = namedview_dim_snap(nv, t, q, dim, it);
- if (d < dist) {
- xdist = q[dim] - pre;
- dist = d;
- }
- }
- }
-
- return std::make_pair(xdist, dist < NR_HUGE);
-}
-
/**
* Snap list of points in two dimensions.
*/
diff --git a/src/snap.h b/src/snap.h
index 252c585c9a81fba381409ba5889dec0e3dd8ffb8..49c4987898dc8ee454404a4c40dfc7de718faf14 100644 (file)
--- a/src/snap.h
+++ b/src/snap.h
std::list<SPItem const *> const &it
);
-std::pair<NR::Coord, bool> namedview_dim_snap_list(SPNamedView const *nv,
- Inkscape::Snapper::PointType t, const std::vector<NR::Point> &p,
- double const dx, NR::Dim2 const dim,
- std::list<SPItem const *> const &it
- );
-
std::pair<double, bool> namedview_dim_snap_list_scale(SPNamedView const *nv,
Inkscape::Snapper::PointType t, const std::vector<NR::Point> &p,
NR::Point const &norm, double const sx,