Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (y <=1 && y >= -x/2 && y >= (x+1)/2) {
- return true;
- } else if ( y>= -1 && y <=x/2 && y<= (x-1)/2) {
- return true;
- } else if (y <=1 && y <= (x-1)/2 && y <= x/2) {
- return true;
- } else if (y >=1 && y <= -x/2 && y <= (x-1)/2) {
- return true;
- } else if (y >=0 && y <= -x/2 && y <= (x-1)/2) {
- return true;
- } else if (y >=0 && y <= x/2 && y <= (x+1)/2) {
- return true;
- } else if (y <=0 && y >= (-x-1)/2 && y >= x/2) {
- return true;
- } else if (y <=0 && y >= -x/2 && y >= (x-1)/2) {
- return true;
- } else {
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement