Arma 3 Scripting

Function in Vectors

BIS_fnc_rotateVector2D

Also available as Markdown and JSON, or read the original wiki page.

Description

This function returns a 2D vector rotated a specified number of degrees around the origin.

Syntax

[vector2D, angle] call BIS_fnc_rotateVector2D

Parameters:

Returns: Array - new vector

Examples

Example 1

[[5,3], 60] call BIS_fnc_rotateVector2D;//Returns[-0.0980766,5.83013]

See also

BIS_fnc_crossProduct · BIS_fnc_magnitudeSqr · BIS_fnc_vectorFromXToY

Community notes