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

Method getMin

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

Source from the content-addressed store, hash-verified

265 }
266
267 private float getMin(IExpression[] exprs)
268 {
269 if (exprs.length == 2)
270 {
271 return Math.min(evalFloat(exprs, 0), evalFloat(exprs, 1));
272 }
273 else
274 {
275 float f = evalFloat(exprs, 0);
276
277 for (int i = 1; i < exprs.length; ++i)
278 {
279 float f1 = evalFloat(exprs, i);
280
281 if (f1 < f)
282 {
283 f = f1;
284 }
285 }
286
287 return f;
288 }
289 }
290
291 private float getMax(IExpression[] exprs)
292 {

Callers 1

evalFloatMethod · 0.95

Calls 1

evalFloatMethod · 0.95

Tested by

no test coverage detected