Fixed: containsPoint for color and image value viewers. They used the wrong Rotation.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1029 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-07-23 12:39:07 +00:00
parent 13a37f4734
commit c476de0fa2
3 changed files with 13 additions and 12 deletions
+1
View File
@@ -45,6 +45,7 @@ bool AlphaMask::isTransparent(int x, int y) const {
return alpha[x + y * size.x] < 20;
}
/// Do the points form a (counter??)clockwise angle?
bool convex(const wxPoint& p, const wxPoint& q, const wxPoint& r) {
return p.y*q.x - p.x*q.y - p.y*r.x + q.y*r.x + p.x*r.y - q.x*r.y > 0;
}