Package vazkii.botania.common.helper
Class MathHelper
java.lang.Object
vazkii.botania.common.helper.MathHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleangleBetween(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) static longdistSqr(net.minecraft.core.Vec3i a, net.minecraft.core.Vec3i b) static intmultiplyColor(int c1, int c2) static floatpointDistancePlane(double x1, double z1, double x2, double z2) static floatpointDistanceSpace(double x1, double y1, double z1, double x2, double y2, double z2) static voidsetEntityMotionFromVector(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 originalPosVector, float modifier)
-
Constructor Details
-
MathHelper
public MathHelper()
-
-
Method Details
-
angleBetween
public static double angleBetween(net.minecraft.world.phys.Vec3 a, net.minecraft.world.phys.Vec3 b) -
pointDistanceSpace
public static float pointDistanceSpace(double x1, double y1, double z1, double x2, double y2, double z2) -
pointDistancePlane
public static float pointDistancePlane(double x1, double z1, double x2, double z2) -
setEntityMotionFromVector
public static void setEntityMotionFromVector(net.minecraft.world.entity.Entity entity, net.minecraft.world.phys.Vec3 originalPosVector, float modifier) -
multiplyColor
public static int multiplyColor(int c1, int c2) -
distSqr
public static long distSqr(net.minecraft.core.Vec3i a, net.minecraft.core.Vec3i b)
-