{"name":"BIS_fnc_rotateVector3D","title":"BIS fnc rotateVector3D","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_rotateVector3D","revid":338142,"updated":"2023-02-23T23:47:39Z","groups":["Vectors"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Rotates the vector around the given axis by the given angle","syntaxes":[{"syntax":"[vector, angle, axis] call BIS_fnc_rotateVector3D","params":[{"name":"vector","type":"Array in format Vector3D","type_expr":"Vector3D","types":["Array","Vector3D"]},{"name":"angle","type":"Number","description":"given angle (taken in the opposite direction to the one defined by the [right hand rule](https://en.wikipedia.org/wiki/Right-hand_rule))","type_expr":"Number"},{"name":"axis","type":"Number","description":"rotation axis:\n\n- 0 - **X** axis\n- 1 - **Y** axis\n- 2 - **Z** axis","type_expr":"Number"}],"returns":{"type":"Array","type_expr":"Array","description":"rotated vector in format Vector3D"}}],"examples":[{"code":["[vectorDir player, 90, 2] call BIS_fnc_rotateVector3D;"]}],"see_also":["BIS_fnc_transformVectorDirAndUp","BIS_fnc_rotateVector2D"]}