Class AngleHelper

java.lang.Object
net.createmod.catnip.utility.math.AngleHelper

public class AngleHelper extends Object
  • Constructor Details

    • AngleHelper

      public AngleHelper()
  • Method Details

    • horizontalAngle

      public static float horizontalAngle(net.minecraft.core.Direction facing)
    • verticalAngle

      public static float verticalAngle(net.minecraft.core.Direction facing)
    • rad

      public static float rad(double angle)
    • deg

      public static float deg(double angle)
    • angleLerp

      public static float angleLerp(double pct, double current, double target)
    • getShortestAngleDiff

      public static float getShortestAngleDiff(double current, double target)
    • getShortestAngleDiff

      public static float getShortestAngleDiff(double current, double target, float hint)
    • wrapAngle180

      public static float wrapAngle180(float angle)