{"name":"BIS_fnc_smoothStep","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.76"}],"since":{"game":"arma3","name":"Arma 3","version":"1.76"},"arma3_since":"1.76","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Interpolates between 0 and 1 with smoothing at the limits. Formula is `n2 × (3 - 2n)`.","syntaxes":[{"syntax":"number call BIS_fnc_smoothStep","since":null,"effect":null,"exec":null,"params":[{"name":"number","type":"Number","optional":false,"default":null,"description":"a number in range 0..1. A value not in range will be floored to 0 or ceiled to 1","types":["Number"],"since":null,"text":"number: Number - a number in range 0..1. A value not in range will be floored to 0 or ceiled to 1"}],"returns":{"type":"Number","types":["Number"],"description":"interpolation result","text":"Number - interpolation result"}}],"examples":[{"text":"```sqf\nprivate _smoothedStep = 0.75 call BIS_fnc_smoothStep;\n```","code":["private _smoothedStep = 0.75 call BIS_fnc_smoothStep;"]},{"text":"```sqf\n[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]\n```","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]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_lerp"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interpolation","Functions","Introduced with Arma 3 version 1.76"],"docblock":null,"filled_from_docblock":[]}