Class VecHelper

java.lang.Object
vazkii.botania.common.helper.VecHelper

public class VecHelper extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.phys.Vec3
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.phys.AABB
    boxForRange(net.minecraft.world.phys.Vec3 v, double range)
     
    static net.minecraft.world.phys.AABB
    boxForRange(net.minecraft.world.phys.Vec3 v, double rangeX, double rangeY, double rangeZ)
     
    static net.minecraft.world.phys.Vec3
    fromEntityCenter(net.minecraft.world.entity.Entity e)
     
    static net.minecraft.world.phys.Vec3
    rotate(net.minecraft.world.phys.Vec3 v, double theta, net.minecraft.world.phys.Vec3 axis)
    Rotates v by theta radians around axis
    static org.joml.Quaternionf
    rotateX(float degrees)
     
    static org.joml.Quaternionf
    rotateY(float degrees)
     
    static org.joml.Quaternionf
    rotateZ(float degrees)
     
    static float
    toRadians(float degrees)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
      Rotates v by theta radians around axis
    • 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)