MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / isBetween

Method isBetween

Player.js:1097–1100  ·  view source on GitHub ↗
(a, b1, b2)

Source from the content-addressed store, hash-verified

1095 }
1096
1097 function isBetween(a, b1, b2) {
1098 return (b1 <= a && a <= b2) || (b2 <= a && a <= b1)
1099
1100 }
1101
1102 if (isBetween(directedCorrection.x, 0, maxAllowedXCorrection) &&
1103 isBetween(directedCorrection.y, 0, maxAllowedYCorrection)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected