Class MathUtils

java.lang.Object
host.anzo.commons.utils.MathUtils

public class MathUtils extends Object
Since:
9/11/2024
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    clamp(double value, double min, double max)
     
    static float
    clamp(float value, float min, float max)
     
    static int
    clamp(int value, int min, int max)
     
    static long
    clamp(long value, long min, long max)
     

    Methods inherited from class java.lang.Object

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

    • MathUtils

      public MathUtils()
  • Method Details

    • clamp

      public static int clamp(int value, int min, int max)
    • clamp

      public static long clamp(long value, long min, long max)
    • clamp

      public static double clamp(double value, double min, double max)
    • clamp

      public static float clamp(float value, float min, float max)