MCPcopy
hub / github.com/phaserjs/phaser / Clamp

Function Clamp

src/math/Clamp.js:19–22  ·  view source on GitHub ↗
(value, min, max)

Source from the content-addressed store, hash-verified

17 * @return {number} The clamped value.
18 */
19var Clamp = function (value, min, max)
20{
21 return Math.max(min, Math.min(max, value));
22};
23
24module.exports = Clamp;

Callers 15

ScenePlugin.jsFile · 0.85
ScaleManager.jsFile · 0.85
GetMinMaxValueFunction · 0.85
TweenData.jsFile · 0.85
TweenFrameData.jsFile · 0.85
HTML5AudioSound.jsFile · 0.85
World.jsFile · 0.85
CanvasTexture.jsFile · 0.85
Frame.jsFile · 0.85
Camera.jsFile · 0.85
RotateTo.jsFile · 0.85
Flash.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…