BIS fnc rotateVector3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created page)
 
m (infobox to template)
Line 26: Line 26:
  *
  *
  * Dependency: BIS_fnc_multiplySquareMatrixByVector
  * Dependency: BIS_fnc_multiplySquareMatrixByVector
  */</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
  */</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_rotateVector3D]]|Syntax=
|[] call [[BIS_fnc_rotateVector3D]]|Syntax=

Revision as of 15:28, 2 April 2019

Hover & click on the images for description

Description

Description:
/*
 * Author: Zozo
 * Rotates the vector around the given axis by the given angle
 *
 * Arguments:
 * 0: _vector ARRAY [x,y,z]
 * 1: _angle SCALAR (accepts also negative numbers)
 * 2: _axis (AXIS_X - 0, AXIS_Y - 1 AXIS_Z - 2)
 *
 * Return Value:
 * ARRAY [x,y,z]
 *
 * Example:
 [vectorDir player, 90, AXIS_Z] call BIS_rotateVector;
 *
 *
 * Dependency: BIS_fnc_multiplySquareMatrixByVector
 */
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_rotateVector3D
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note