{"name":"BIS_fnc_terrainGradAngle","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","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":"","params":[{"name":"object","type":"Object or Position","type_expr":"Object | Position"},{"name":"direction","type":"Number","description":"direction where should be gradient calculated (compass direction)","type_expr":"Number"},{"name":"delta","type":"Number","description":"which stepsize should be used","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"gradient angle in radians"}}],"examples":[{"code":["private _radGrad = [getPos player, getDir player] call BIS_fnc_terrainGradAngle;"]}],"see_also":["getDir","surfaceNormal"]}