git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bugfixes, performance fixes, tears.
[ipdf/code.git]
/
src
/
quadtree.cpp
diff --git
a/src/quadtree.cpp
b/src/quadtree.cpp
index
b84bb78
..
623bd38
100644
(file)
--- a/
src/quadtree.cpp
+++ b/
src/quadtree.cpp
@@
-297,6
+297,15
@@
QuadTreeIndex QuadTree::GetNeighbour(QuadTreeIndex start, int xdir, int ydir, Do
return -1;
}
return -1;
}
+void QuadTree::GetCanonicalCoords(QuadTreeIndex& start, Real& x, Real& y, Document *doc)
+{
+ int _x = (int)x;
+ int _y = (int)y;
+ start = GetNeighbour(start, _x, _y, doc);
+ x -= _x;
+ y -= _y;
+}
+
}
#endif
}
#endif
UCC
git Repository :: git.ucc.asn.au