Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int process(Maze startNode, Maze endnode) {
- double a = startNode.getLocation()-endnode.getLocationX();
- double b = startNode.getLocation()-endnode.getLocationY();
- return (int)Math.sqrt((a*a) + (b*b));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement