MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / MatrixRotateZ

Function MatrixRotateZ

examples/shaders/rlmath.py:63–74  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

61
62
63def MatrixRotateZ(angle):
64 result = MatrixIdentity();
65
66 cosres = math.cos(angle);
67 sinres = math.sin(angle);
68
69 result.m0 = cosres;
70 result.m1 = -sinres;
71 result.m4 = sinres;
72 result.m5 = cosres;
73
74 return result
75
76
77def MatrixMultiply(left, right):

Callers 2

shaders_fog.pyFile · 0.85

Calls 1

MatrixIdentityFunction · 0.85

Tested by

no test coverage detected