minimap!
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package mightypork.util.error;
|
||||
|
||||
|
||||
public class YouFuckedUpException extends RuntimeException {
|
||||
|
||||
public YouFuckedUpException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
public YouFuckedUpException(String message, Throwable cause)
|
||||
{
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
|
||||
public YouFuckedUpException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
|
||||
public YouFuckedUpException(Throwable cause)
|
||||
{
|
||||
super(cause);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -656,4 +656,10 @@ public class Calc {
|
||||
{
|
||||
if (!inRange(index, 0, length - 1)) { throw new IndexOutOfBoundsException(); }
|
||||
}
|
||||
|
||||
|
||||
public static double dist(double x1, double y1, double x2, double y2)
|
||||
{
|
||||
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user