Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public int process(Maze startNode, Maze endnode) {
  2. double a = startNode.getLocation()-endnode.getLocationX();
  3. double b = startNode.getLocation()-endnode.getLocationY();
  4. return (int)Math.sqrt((a*a) + (b*b));
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement