{"name":"BIS_fnc_smoothStep","title":"BIS fnc smoothStep","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_smoothStep","revid":329343,"updated":"2022-07-27T10:50:10Z","groups":["Interpolation"],"status":"ok","games":{"arma3":"1.76"},"since":"arma3 1.76","arma3_since":"1.76","description":"Interpolates between 0 and 1 with smoothing at the limits. Formula is `n2 × (3 - 2n)`.","syntaxes":[{"syntax":"number call BIS_fnc_smoothStep","params":[{"name":"number","type":"Number","description":"a number in range 0..1. A value not in range will be floored to 0 or ceiled to 1","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"interpolation result"}}],"examples":[{"code":["private _smoothedStep = 0.75 call BIS_fnc_smoothStep;"]},{"code":["[0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0] apply { _x call BIS_fnc_smoothStep; };\n// returns [0, 0.028, 0.104, 0.216, 0.352, 0.5, 0.648, 0.784, 0.896, 0.972, 1]"]}],"see_also":["BIS_fnc_lerp"]}