mirror of
https://github.com/TheWhiteDog9487/RandomTeleporter.git
synced 2025-04-12 21:19:43 +08:00
10 lines
275 B
Java
10 lines
275 B
Java
package xyz.thewhitedog9487;
|
|
|
|
import net.minecraft.util.math.Vec3d;
|
|
|
|
public class Toolbox {
|
|
static public double Distance(Vec3d A, Vec3d B){
|
|
return Math.sqrt(
|
|
Math.pow(A.getX() - B.getX(), 2) +
|
|
Math.pow(A.getY() - B.getY(), 2));}
|
|
} |