Java Double Number Clamp clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_)

Here you can find the source of clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_)

Description

clamdouble

License

Open Source License

Declaration

public static double clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_) 

Method Source Code

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

public class Main {
    public static double clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_) {
        return p_151237_0_ < p_151237_2_ ? p_151237_2_ : (p_151237_0_ > p_151237_4_ ? p_151237_4_ : p_151237_0_);
    }/* w  w  w.jav  a  2 s . co  m*/
}

Related

  1. clamp(final double value, final double min, final double max)
  2. clamp01(double d)
  3. clamp01(double value)
  4. clamp255d(double d)
  5. clamp_double(double num, double min, double max)
  6. clamp_doubleback(double a, double x, double y)
  7. clamp_latitude(double lat)
  8. clampAngle(double angle)
  9. clampedLerp(double lowerBnd, double upperBnd, double slide)