Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vanderlin/Tools
Browse files Browse the repository at this point in the history
Conflicts:
	Utils/Utils.h
  • Loading branch information
Todd Vanderlin committed Mar 23, 2012
2 parents 0217c50 + 87efb9e commit a4a4ed7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Utils/Utils.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ static float isPointInScreen(const ofVec2f &pt, float padding=0) {
ofRectangle screen(-padding, -padding, ofGetWidth()+(padding*2), ofGetHeight()+(padding*2)); ofRectangle screen(-padding, -padding, ofGetWidth()+(padding*2), ofGetHeight()+(padding*2));
return screen.inside(pt); return screen.inside(pt);
} }
/*
static float isPointInScreen(float x, float y, float padding=0) { static float isPointInScreen(float x, float y, float padding=0) {
return isPointInScreen(x, y); return isPointInScreen(x, y);
} }*/


static ofVec2f ofRandomPointInRect(float x, float y, float w, float h, float padding=0) { static ofVec2f ofRandomPointInRect(float x, float y, float w, float h, float padding=0) {
float rx = ofRandom(x+padding, x+(w-padding*2)); float rx = ofRandom(x+padding, x+(w-padding*2));
Expand Down

0 comments on commit a4a4ed7

Please sign in to comment.