Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.16 KB | None | 0 0
  1. private static double cost(int fh, int sh, double sx, int sy, int ex, int ey){
  2.    return Math.sqrt(Math.pow(sx - ex, 2) + Math.pow(sy - ey, 2)) + Math.abs(fh - sh);
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement