Class MoMath

java.lang.Object
org.cloudburstmc.mojava.runtime.MoMath

public final class MoMath extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final QueryStruct
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    dieRoll(double num, double low, double high)
     
    static int
    dieRollInt(int num, int low, int high)
     
    static double
    hermiteBlend(double t)
     
    static double
    inverseLerp(double start, double end, double value)
     
    static double
    lerp(double start, double end, double amount)
     
    static double
    lerpRotate(double start, double end, double amount)
     
    static double
    minAngle(double value)
     
    static double
    radify(double num)
     
    static double
    random(double low, double high)
     
    static int
    randomInt(int low, int high)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MoMath

      public MoMath()
  • Method Details

    • random

      public static double random(double low, double high)
    • randomInt

      public static int randomInt(int low, int high)
    • dieRoll

      public static double dieRoll(double num, double low, double high)
    • dieRollInt

      public static int dieRollInt(int num, int low, int high)
    • hermiteBlend

      public static double hermiteBlend(double t)
    • inverseLerp

      public static double inverseLerp(double start, double end, double value)
    • minAngle

      public static double minAngle(double value)
    • lerp

      public static double lerp(double start, double end, double amount)
    • lerpRotate

      public static double lerpRotate(double start, double end, double amount)
    • radify

      public static double radify(double num)