Missing vec2 functions

I’m missing a few vec2 operations in Codea 4

rotated = vec2:rotate(radians)
radians = vec2:angleBetween(anotherVec2)

what should I use instead…?
I do see some new functions (refract and reflect)…

from:lerp(to,ratio)

I just forgot to put those in (or an equivalent version), so I’ll just need to add them in the next beta…

2 Likes

Posting my vector extensions in case anyone finds them useful

3 Likes