fix first column and line not drawable
- within() method should include first point and exclude last.
This commit is contained in:
@@ -92,7 +92,8 @@ public class Position
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** WARNING [(a,b),(width,height)[ */
|
||||||
public boolean within(int a, int b, int width, int height) {
|
public boolean within(int a, int b, int width, int height) {
|
||||||
return ((x > a) && (x < width) && (y > b) && (y < height));
|
return ((x >= a) && (x < width) && (y >= b) && (y < height));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user