Updated DevTools Plugin (#25)

Updated DevTools and consolidated developer plugins
This commit is contained in:
Kronos
2017-04-19 07:39:38 +10:00
committed by Adam
parent 53f97ed90e
commit 0d0a938499
11 changed files with 581 additions and 440 deletions

View File

@@ -59,9 +59,7 @@ public class Point
*/
public int distanceTo(Point other)
{
int dx = x - other.x;
int dy = y - other.y;
return (int) Math.sqrt(dx * dx + dy * dy);
return (int) Math.hypot(getX() - other.getX(), getY() - other.getY());
}
@Override