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

Method limit

src/main/java/net/optifine/util/NumUtils.java:5–8  ·  view source on GitHub ↗
(float val, float min, float max)

Source from the content-addressed store, hash-verified

3public class NumUtils
4{
5 public static float limit(float val, float min, float max)
6 {
7 return val < min ? min : (val > max ? max : val);
8 }
9
10 public static int mod(int x, int y)
11 {

Callers 15

getWeatherBrightnessMethod · 0.95
getSmoothValueMethod · 0.95
updateTextureMethod · 0.45
LangClass · 0.45
beginAddVertexDataMethod · 0.45
updateDynTexSubImage1Method · 0.45
uploadTexSub1Method · 0.45
setupTextureMethod · 0.45
updateSubImageMethod · 0.45
ShadersClass · 0.45
nextByteBufferMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected