Package vazkii.botania.common.helper
Class VecHelper
java.lang.Object
vazkii.botania.common.helper.VecHelper
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.phys.AABBboxForRange(net.minecraft.world.phys.Vec3 v, double range) static net.minecraft.world.phys.AABBboxForRange(net.minecraft.world.phys.Vec3 v, double rangeX, double rangeY, double rangeZ) static net.minecraft.world.phys.Vec3fromEntityCenter(net.minecraft.world.entity.Entity e) static net.minecraft.world.phys.Vec3rotate(net.minecraft.world.phys.Vec3 v, double theta, net.minecraft.world.phys.Vec3 axis) Rotatesvbythetaradians aroundaxisstatic org.joml.QuaternionfrotateX(float degrees) static org.joml.QuaternionfrotateY(float degrees) static org.joml.QuaternionfrotateZ(float degrees) static floattoRadians(float degrees)
-
Field Details
-
ONE
public static final net.minecraft.world.phys.Vec3 ONE
-
-
Method Details
-
fromEntityCenter
public static net.minecraft.world.phys.Vec3 fromEntityCenter(net.minecraft.world.entity.Entity e) -
rotate
public static net.minecraft.world.phys.Vec3 rotate(net.minecraft.world.phys.Vec3 v, double theta, net.minecraft.world.phys.Vec3 axis) Rotatesvbythetaradians aroundaxis -
boxForRange
public static net.minecraft.world.phys.AABB boxForRange(net.minecraft.world.phys.Vec3 v, double range) -
boxForRange
public static net.minecraft.world.phys.AABB boxForRange(net.minecraft.world.phys.Vec3 v, double rangeX, double rangeY, double rangeZ) -
toRadians
public static float toRadians(float degrees) -
rotateX
public static org.joml.Quaternionf rotateX(float degrees) -
rotateY
public static org.joml.Quaternionf rotateY(float degrees) -
rotateZ
public static org.joml.Quaternionf rotateZ(float degrees)
-