Java Double Number Clamp clamp(double value, double low, double high)

Here you can find the source of clamp(double value, double low, double high)

Description

clamp

License

Open Source License

Declaration

public static double clamp(double value, double low, double high) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double clamp(double value, double low, double high) {
        return Math.min(Math.max(value, low), high);
    }/*ww w.ja va2  s  .co  m*/
}

Related

  1. clamp(double val, double min, double max)
  2. clamp(double value)
  3. clamp(double value)
  4. clamp(double value, double low, double high)
  5. clamp(double value, double low, double high)
  6. clamp(double value, double min, double max)
  7. clamp(double value, double min, double max)
  8. clamp(double value, double min, double max)
  9. clamp(double value, double min, double max)