MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / fitShellPositionInBoundsH

Function fitShellPositionInBoundsH

js/script.js:861–864  ·  view source on GitHub ↗
(position)

Source from the content-addressed store, hash-verified

859}
860
861function fitShellPositionInBoundsH(position) {
862 const edge = 0.18;
863 return (1 - edge * 2) * position + edge;
864}
865
866function fitShellPositionInBoundsV(position) {
867 return position * 0.75;

Callers 2

getRandomShellPositionHFunction · 0.85
getRandomShellSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected