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

Function MatrixRotateX

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

Source from the content-addressed store, hash-verified

26 return rl.ffi.new("struct Vector3 *",[ 0, 0, 0])
27
28def MatrixRotateX(angle):
29 result = MatrixIdentity();
30
31 cosres = math.cos(angle);
32 sinres = math.sin(angle);
33
34 result.m5 = cosres;
35 result.m6 = -sinres;
36 result.m9 = sinres;
37 result.m10 = cosres;
38
39 return result;
40
41
42

Callers 2

shaders_fog.pyFile · 0.85

Calls 1

MatrixIdentityFunction · 0.85

Tested by

no test coverage detected