daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public boolean withinDistance(WorldTile tile, int distance) {
  2.         if (tile.plane != plane)
  3.             return false;
  4.         int deltaX = tile.x - x, deltaY = tile.y - y;
  5.         return deltaX <= distance && deltaX >= -distance && deltaY <= distance && deltaY >= -distance;
  6.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top