MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getMax

Method getMax

src/main/java/net/optifine/expr/FunctionType.java:291–313  ·  view source on GitHub ↗
(IExpression[] exprs)

Source from the content-addressed store, hash-verified

289 }
290
291 private float getMax(IExpression[] exprs)
292 {
293 if (exprs.length == 2)
294 {
295 return Math.max(evalFloat(exprs, 0), evalFloat(exprs, 1));
296 }
297 else
298 {
299 float f = evalFloat(exprs, 0);
300
301 for (int i = 1; i < exprs.length; ++i)
302 {
303 float f1 = evalFloat(exprs, i);
304
305 if (f1 > f)
306 {
307 f = f1;
308 }
309 }
310
311 return f;
312 }
313 }
314
315 private static float evalFloat(IExpression[] exprs, int index)
316 {

Callers 1

evalFloatMethod · 0.95

Calls 1

evalFloatMethod · 0.95

Tested by

no test coverage detected