From f09b90f0a695ef68bd3dac62ff08c435b42e8f90 Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sat, 16 Feb 2013 13:21:21 +0100 Subject: [PATCH] Code style applied. --- src/de/craftinc/gates/util/GeometryUtil.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/de/craftinc/gates/util/GeometryUtil.java b/src/de/craftinc/gates/util/GeometryUtil.java index d4387c7..ab94c8e 100644 --- a/src/de/craftinc/gates/util/GeometryUtil.java +++ b/src/de/craftinc/gates/util/GeometryUtil.java @@ -5,11 +5,12 @@ import org.bukkit.Location; public class GeometryUtil { // 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 Y = location1.getY() - location2.getY(); double Z = location1.getZ() - location2.getZ(); - return Math.sqrt(X*X+Y*Y+Z*Z); + + return Math.sqrt(X*X + Y*Y + Z*Z); } - }