mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user