Java Double Number Clamp clampedLerp(double lowerBnd, double upperBnd, double slide)

Here you can find the source of clampedLerp(double lowerBnd, double upperBnd, double slide)

Description

clamped Lerp

License

Open Source License

Declaration

public static double clampedLerp(double lowerBnd, double upperBnd, double slide) 

Method Source Code

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

public class Main {
    public static double clampedLerp(double lowerBnd, double upperBnd, double slide) {
        return slide < 0.0D ? lowerBnd : (slide > 1.0D ? upperBnd : lowerBnd + (upperBnd - lowerBnd) * slide);
    }// ww w.ja  v  a 2 s.co  m
}

Related

  1. clamp_double(double num, double min, double max)
  2. clamp_double(double p_151237_0_, double p_151237_2_, double p_151237_4_)
  3. clamp_doubleback(double a, double x, double y)
  4. clamp_latitude(double lat)
  5. clampAngle(double angle)
  6. clampFloat(double in)
  7. clampMax(double val, double max)
  8. clampMax(final double MAX, final double VALUE)
  9. clampMin(double input, double min)