Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
made it easier to click points
  • Loading branch information
cor11004 committed Dec 7, 2015
1 parent c1798e1 commit 712639b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/main.pde
Expand Up @@ -96,17 +96,17 @@ void mouseReleased() {
if(pointclickedbool) {
pointclickedbool = false;
for(Point p: list.getPoints()) {
if((p.getX() - 5 < x) && (p.getX() + 5 > x)) {
if((p.getY() - 5 < y) && (p.getY() +5 > y)) {
if((p.getX() - 10 < x) && (p.getX() + + 10 > x)) {
if((p.getY() - 10 < y) && (p.getY() + 10 > y)) {
HalfEdge h = new HalfEdge(p, pointclicked);
linedrawn = true;
}
}
}
} else {
for(Point p: list.getPoints()) {
if((p.getX() - 5 < x) && (p.getX() + 5 > x)) {
if((p.getY() - 5 < y) && (p.getY() +5 > y)) {
if((p.getX() - 10 < x) && (p.getX() + 10 > x)) {
if((p.getY() - 10 < y) && (p.getY() + 10 > y)) {
pointclickedbool = true;
pointclicked = p;
}
Expand Down

0 comments on commit 712639b

Please sign in to comment.