Class MathUtils

java.lang.Object
org.monte.media.math.MathUtils

public class MathUtils extends Object
MathUtils.
Author:
Werner Randelshofer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    clamp(double value, double minValue, double maxValue)
     
    static float
    clamp(float value, float minValue, float maxValue)
     
    static int
    clamp(int value, int minValue, int maxValue)
     
    static long
    clamp(long value, long minValue, long maxValue)
     

    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 float clamp(float value, float minValue, float maxValue)
    • clamp

      public static double clamp(double value, double minValue, double maxValue)
    • clamp

      public static int clamp(int value, int minValue, int maxValue)
    • clamp

      public static long clamp(long value, long minValue, long maxValue)