atan2
ATAN20x8927CBF9D22261A4The GTA V native ATAN2 of the MISC namespace, as LS:MP client scripts call it: the global function atan2, in JavaScript and in Lua.
atan2(p0: number, p1: number): numberatan2(p0: number, p1: number): numberUsage
JavaScript
const value = atan2(p0, p1);Lua
local value = atan2(p0, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
p0 | float | number | number |
p1 | float | number | number |
Returns
float JavaScript number, Lua numberReference
- Namespace
- Misc MISC
- In the game
float ATAN2(float p0, float p1)- Hash
0x8927CBF9D22261A4