java.lang.Object
com.inductiveautomation.ignition.common.Math2

public class Math2 extends Object
Contains functions we wish were in java.lang.Math
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • Math2

      public Math2()
  • Method Details

    • clamp

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

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

      public static float clamp(float val, float min, float max)
    • clamp

      public static double clamp(double val, double min, double max)