Lines Matching full:clamp
71 * Clamp a float to a lower bound
76 * : the minimum value to use to clamp
87 * Clamp a float to an upper bound
92 * : the maximum value to use to clamp
105 * Clamp a float to a lower and upper bound
110 * : the minimum value to use to clamp
112 * : the maximum value to use to clamp
115 public static final float clamp(float val, float minVal, float maxVal) {
125 * Clamp an integer to a lower and upper bound
130 * : the minimum value to use to clamp
132 * : the maximum value to use to clamp
135 public static final int clamp(int val, int minVal, int maxVal) {