{"name":"BIS_fnc_terrainGradAngle","operator":null,"title":"BIS fnc terrainGradAngle","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_terrainGradAngle","revid":328359,"updated":"2022-07-13T16:00:47Z","groups":["Geometry"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the gradient angle (in radians) of the terrain at a specified position and a compass direction.\nIt is an angle of the slope of a tangent plane to the terrain at the specified position in the specified direction.","syntaxes":[{"syntax":"","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object or Position","optional":false,"default":null,"description":null,"types":["Object","Position"],"since":null,"text":"object: Object or Position"},{"name":"direction","type":"Number","optional":false,"default":null,"description":"direction where should be gradient calculated (compass direction)","types":["Number"],"since":null,"text":"direction: Number - direction where should be gradient calculated (compass direction)"},{"name":"delta","type":"Number","optional":false,"default":null,"description":"which stepsize should be used","types":["Number"],"since":null,"text":"delta: Number - which stepsize should be used"}],"returns":{"type":"Number","types":["Number"],"description":"gradient angle in radians","text":"Number - gradient angle in radians"}}],"examples":[{"text":"```sqf\nprivate _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;\n```","code":["private _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getDir","surfaceNormal"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Geometry","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}