src/2D.cpp
static void mult_matrix_vec(float dst[4], const float m[16], const float v[4])
{
    dst[0] = v[0] * m[0] + v[1] * m[4] + v[2] * m[8] + v[3] * m[12];
    dst[1] = v[0] * m[1] + v[1] * m[5] + v[2] * m[9] + v[3] * m[13];
    dst[2] = v[0] * m[2] + v[1] * m[6] + v[2] * m[10] + v[3] * m[14];
    dst[3] = v[0] * m[3] + v[1] * m[7] + v[2] * m[11] + v[3] * m[15];
}
/// 4x4 matrix transform of an XYZW coordinate - this matches OpenGL matrix conventions.
4x4 matrix transform of an XYZW coordinate - this matches OpenGL matrix conventions.
4x4 matrix transform of an XYZW coordinate - this matches OpenGL matrix conventions .
static void mult_matrix_vec(float dst[4], const float m[16], const float v[4])
{
    dst[0] = v[0] * m[0] + v[1] * m[4] + v[2] * m[8] + v[3] * m[12];
    dst[1] = v[0] * m[1] + v[1] * m[5] + v[2] * m[9] + v[3] * m[13];
    dst[2] = v[0] * m[2] + v[1] * m[6] + v[2] * m[10] + v[3] * m[14];
    dst[3] = v[0] * m[3] + v[1] * m[7] + v[2] * m[11] + v[3] * m[15];
}
static void mult_matrix_vec ( float dst [ 4 ] , const float m [ 16 ] , const float v [ 4 ] ) { dst [ 0 ] = v [ 0 ] * m [ 0 ] + v [ 1 ] * m [ 4 ] + v [ 2 ] * m [ 8 ] + v [ 3 ] * m [ 12 ] ; dst [ 1 ] = v [ 0 ] * m [ 1 ] + v [ 1 ] * m [ 5 ] + v [ 2 ] * m [ 9 ] + v [ 3 ] * m [ 13 ] ; dst [ 2 ] = v [ 0 ] * m [ 2 ] + v [ 1 ] * m [ 6 ] + v [ 2 ] * m [ 10 ] + v [ 3 ] * m [ 14 ] ; dst [ 3 ] = v [ 0 ] * m [ 3 ] + v [ 1 ] * m [ 7 ] + v [ 2 ] * m [ 11 ] + v [ 3 ] * m [ 15 ] ; }
4x4 matrix transform of an XYZW coordinate - this matches OpenGL matrix conventions.
4x4 matrix transform of an XYZW coordinate - this matches OpenGL matrix conventions .