Okay, so I'm using the distance formula to print out the distance between two player objects from inside one of the player objects (With "other" being another Player object). How can I get it to just print the number without getting a "NaN"?
System.out.println("D = " + Math.sqrt(Math.pow(x - other.x, 2) - Math.pow(-(y - other.y), 2)));