duderino
>
learn
>
knowledge
>
snippets
>
math
Rot
mat2
Rot(
in
float
a)
// multiply vec2 by this to rotate
{
return
mat2
(
cos
(a),-
sin
(a),
sin
(a),
cos
(a));}