Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

GLSL_ROTATE_2D

const GLSL_ROTATE_2D: ā€œ\nmat2 rotate2D(float angle) {\n float c = cos(angle);\n float s = sin(angle);\n return mat2(c, -s, s, c);\n}\nā€

Defined in: packages/sigma/src/rendering/glsl.ts:33