- added caching for computeVisibleQuad

- fixed bug when in chat mode and the deub view toggle key was intercepted
- added less than operators
This commit is contained in:
Mark Vejvoda
2010-07-29 05:24:51 +00:00
parent d8e41495d0
commit 8feaebb503
10 changed files with 83 additions and 41 deletions

View File

@@ -138,6 +138,22 @@ public:
p[3]/scalar);
}
bool operator <(const Quad2<T> &v) const {
if(p[0] < v.p[0]) {
return true;
}
if(p[1] < v.p[1]) {
return true;
}
if(p[2] < v.p[2]) {
return true;
}
if(p[3] < v.p[3]) {
return true;
}
return false;
}
Rect2<T> computeBoundingRect() const{
return Rect2i(
min(p[0].x, p[1].x),