MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / clip

Method clip

src/main/java/com/volmit/adapt/util/UIWindow.java:393–395  ·  view source on GitHub ↗
(double value, double min, double max)

Source from the content-addressed store, hash-verified

391 }
392
393 public Double clip(double value, double min, double max) {
394 return Math.min(max, Math.max(min, value));
395 }
396
397 @Override
398 public Window setResolution(WindowResolution resolution) {

Callers 7

UIWindowMethod · 0.95
scrollMethod · 0.95
setViewportHeightMethod · 0.95
setElementMethod · 0.95
getElementMethod · 0.95
getRealPositionMethod · 0.95
setResolutionMethod · 0.95

Calls 2

minMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected