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

Function transpose

test/hello_world_gles_proxy.c:392–402  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

390 * @param m the matrix to transpose
391 */
392static void
393transpose(GLfloat *m)
394{
395 GLfloat t[16] = {
396 m[0], m[4], m[8], m[12],
397 m[1], m[5], m[9], m[13],
398 m[2], m[6], m[10], m[14],
399 m[3], m[7], m[11], m[15]};
400
401 memcpy(m, t, sizeof(t));
402}
403
404/**
405 * Inverts a 4x4 matrix.

Callers 2

invertFunction · 0.70
draw_gearFunction · 0.70

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected