Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
buzz_syntax_cheatsheet [2016/04/12 22:14] – ilpincy | buzz_syntax_cheatsheet [2016/04/12 22:15] – ilpincy | ||
---|---|---|---|
Line 194: | Line 194: | ||
math.sin(data.azimuth) | math.sin(data.azimuth) | ||
c.z = data.distance * math.sin(data.elevation) | c.z = data.distance * math.sin(data.elevation) | ||
- | return c }) | + | return c |
+ | | ||
# Reduction (accum is a table) | # Reduction (accum is a table) | ||
Line 203: | Line 204: | ||
accum.z = accum.z + data.z | accum.z = accum.z + data.z | ||
return accum | return accum | ||
- | }, {x=0, y=0, z=0}) | + | }, {.x=0, .y=0, .z=0}) |
# Filtering | # Filtering |