MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / clamp

Method clamp

Utils/src/eu/the5zig/util/Utils.java:243–245  ·  view source on GitHub ↗
(float f1, float f2, float f3)

Source from the content-addressed store, hash-verified

241 }
242
243 public static float clamp(float f1, float f2, float f3) {
244 return f1 < f2 ? f2 : (f1 > f3 ? f3 : f1);
245 }
246
247 /**
248 * Formats a String by time.

Callers 15

bMethod · 0.95
denormalizeValueMethod · 0.95
normalizeValueMethod · 0.95
snapToStepClampMethod · 0.95
bMethod · 0.95
denormalizeValueMethod · 0.95
normalizeValueMethod · 0.95
snapToStepClampMethod · 0.95
aMethod · 0.95
denormalizeValueMethod · 0.95
normalizeValueMethod · 0.95
snapToStepClampMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected