MCPcopy Create free account
hub / github.com/CleanroomMC/ModularUI / max

Method max

src/main/java/com/cleanroommc/modularui/utils/DAM.java:168–171  ·  view source on GitHub ↗

Returns the largest value in the array. If array is empty, 0 is returned. @param arr array @return largest value

(double[] arr)

Source from the content-addressed store, hash-verified

166 * @return largest value
167 */
168 public static double max(double[] arr) {
169 int i = argMax(arr);
170 return i < 0 ? 0 : arr[i];
171 }
172
173 /**
174 * Returns the smallest value in the array. If array is empty, 0 is returned.

Callers 15

computeMethod · 0.95
evaluateMethod · 0.45
evaluateMethod · 0.45
drawMeasuredLinesMethod · 0.45
drawMethod · 0.45
getDefaultHeightMethod · 0.45
cornerRadiusMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
drawMeasuredLinesMethod · 0.45
drawSimpleMethod · 0.45

Calls 1

argMaxMethod · 0.95

Tested by 1

buildUIMethod · 0.36