Java Double Number Clamp clamp(double f, double f1, double f2)

Here you can find the source of clamp(double f, double f1, double f2)

Description

clamp

License

LGPL

Declaration

public static double clamp(double f, double f1, double f2) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static double clamp(double f, double f1, double f2) {
        return f < f1 ? f1 : (f > f2 ? f2 : f);
    }/* ww w .  j av  a  2 s.  c  o m*/
}

Related

  1. clamp(double d, double min, double max)
  2. clamp(double d, double min, double max)
  3. clamp(double d, double min, double max)
  4. clamp(double d, double min, double max)
  5. clamp(double f)
  6. clamp(double min, double arg, double max)
  7. clamp(double min, double max, double val)
  8. clamp(double min, double max, double value)
  9. clamp(double min, double value, double max)