Code style applied.

This commit is contained in:
Tobias Ottenweller 2013-02-16 13:21:21 +01:00
parent 32f1cba2bd
commit f09b90f0a6

View File

@ -5,11 +5,12 @@ import org.bukkit.Location;
public class GeometryUtil { public class GeometryUtil {
// How long between two locations? // How long between two locations?
public static double distanceBetweenLocations(Location location1, Location location2) { public static double distanceBetweenLocations(Location location1, Location location2)
{
double X = location1.getX() - location2.getX(); double X = location1.getX() - location2.getX();
double Y = location1.getY() - location2.getY(); double Y = location1.getY() - location2.getY();
double Z = location1.getZ() - location2.getZ(); double Z = location1.getZ() - location2.getZ();
return Math.sqrt(X*X+Y*Y+Z*Z);
return Math.sqrt(X*X + Y*Y + Z*Z);
} }
} }