Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if (y <=1 && y >= -x/2 && y >= (x+1)/2) {
  2. return true;
  3. } else if ( y>= -1 && y <=x/2 && y<= (x-1)/2) {
  4. return true;
  5. } else if (y <=1 && y <= (x-1)/2 && y <= x/2) {
  6. return true;
  7. } else if (y >=1 && y <= -x/2 && y <= (x-1)/2) {
  8. return true;
  9. } else if (y >=0 && y <= -x/2 && y <= (x-1)/2) {
  10. return true;
  11. } else if (y >=0 && y <= x/2 && y <= (x+1)/2) {
  12. return true;
  13. } else if (y <=0 && y >= (-x-1)/2 && y >= x/2) {
  14. return true;
  15. } else if (y <=0 && y >= -x/2 && y >= (x-1)/2) {
  16. return true;
  17. } else {
  18. return false;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement