include/SIL/math/matrix.h
static inline void mat4_transpose(Matrix4f *dest, const Matrix4f *src)
{
    const float saved_12 = src->_12;
    const float saved_13 = src->_13;
    const float saved_14 = src->_14;
    const float saved_23 = src->_23;
    const float saved_24 = src->_24;
    const float saved_34 = src->_34;

    dest->_11 = src->_11;
    dest->_12 = src->_21;
    dest->_13 = src->_31;
    dest->_14 = src->_41;
    dest->_21 = saved_12;
    dest->_22 = src->_22;
    dest->_23 = src->_32;
    dest->_24 = src->_42;
    dest->_31 = saved_13;
    dest->_32 = saved_23;
    dest->_33 = src->_33;
    dest->_34 = src->_43;
    dest->_41 = saved_14;
    dest->_42 = saved_24;
    dest->_43 = saved_34;
    dest->_44 = src->_44;
}
/**
 * mat4_transpose:  Transpose a 4x4 matrix.
 *
 * [Parameters]
 *     dest: Pointer to matrix in which to store result.
 *     src: Pointer to matrix to transpose.
 */
Transpose a 4x4 matrix.
[Parameters]
dest: Pointer to matrix in which to store result.
src: Pointer to matrix to transpose.
Transpose a 4x4 matrix . [ Parameters ] dest : Pointer to matrix in which to store result . src : Pointer to matrix to transpose .
static inline void mat4_transpose(Matrix4f *dest, const Matrix4f *src)
{
    const float saved_12 = src->_12;
    const float saved_13 = src->_13;
    const float saved_14 = src->_14;
    const float saved_23 = src->_23;
    const float saved_24 = src->_24;
    const float saved_34 = src->_34;
    dest->_11 = src->_11;
    dest->_12 = src->_21;
    dest->_13 = src->_31;
    dest->_14 = src->_41;
    dest->_21 = saved_12;
    dest->_22 = src->_22;
    dest->_23 = src->_32;
    dest->_24 = src->_42;
    dest->_31 = saved_13;
    dest->_32 = saved_23;
    dest->_33 = src->_33;
    dest->_34 = src->_43;
    dest->_41 = saved_14;
    dest->_42 = saved_24;
    dest->_43 = saved_34;
    dest->_44 = src->_44;
}
static inline void mat4_transpose ( Matrix4f * dest , const Matrix4f * src ) { const float saved_12 = src -> _12 ; const float saved_13 = src -> _13 ; const float saved_14 = src -> _14 ; const float saved_23 = src -> _23 ; const float saved_24 = src -> _24 ; const float saved_34 = src -> _34 ; dest -> _11 = src -> _11 ; dest -> _12 = src -> _21 ; dest -> _13 = src -> _31 ; dest -> _14 = src -> _41 ; dest -> _21 = saved_12 ; dest -> _22 = src -> _22 ; dest -> _23 = src -> _32 ; dest -> _24 = src -> _42 ; dest -> _31 = saved_13 ; dest -> _32 = saved_23 ; dest -> _33 = src -> _33 ; dest -> _34 = src -> _43 ; dest -> _41 = saved_14 ; dest -> _42 = saved_24 ; dest -> _43 = saved_34 ; dest -> _44 = src -> _44 ; }
mat4_transpose:  Transpose a 4x4 matrix.
mat4_transpose : Transpose a 4x4 matrix .