Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
buzz_syntax_cheatsheet [2016/09/02 20:27] ilpincy |
buzz_syntax_cheatsheet [2018/03/23 18:17] (current) jayam |
||
---|---|---|---|
Line 138: | Line 138: | ||
# Getting the angle of a 2D vector | # Getting the angle of a 2D vector | ||
function vec2_angle(v) { | function vec2_angle(v) { | ||
- | return math.atan2(v.y, v.x) | + | return math.atan(v.y, v.x) |
}</code> | | }</code> | | ||
^ Swarm management |<code buzz># creation of a swarm with identifier 1 | ^ Swarm management |<code buzz># creation of a swarm with identifier 1 |