MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / transpose

Function transpose

test/full_es2_sdlproc.c:374–384  ·  view source on GitHub ↗

* Transposes a 4x4 matrix. * * @param m the matrix to transpose */

Source from the content-addressed store, hash-verified

372 * @param m the matrix to transpose
373 */
374static void
375transpose(GLfloat *m)
376{
377 GLfloat t[16] = {
378 m[0], m[4], m[8], m[12],
379 m[1], m[5], m[9], m[13],
380 m[2], m[6], m[10], m[14],
381 m[3], m[7], m[11], m[15]};
382
383 memcpy(m, t, sizeof(t));
384}
385
386/**
387 * Inverts a 4x4 matrix.

Callers 2

invertFunction · 0.70
draw_gearFunction · 0.70

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected