@abrugsch, yeah, figured that out. Point is, sin should be brought in line of how it works in other languages, including regular lua as well.
Not only it is non-intuitive (as this example and @abrugsch post had shown), but it also wastes additional 2 tokens (/ 360) per sin call.
Pico-8 invented its own sin() and cos() functions because it uses fixed point math instead of floating point math so it needed new ones anyway.
But no, you wouldn't divide by 360, that'd be weird and not at all how it works normally in any other language. Even standard Lua goes from 0 to Tau, not 0 to 360, silly.
[Please log in to post a comment]