include/SIL/math/matrix.h
static inline void mat4_scale(Matrix4f *dest, const Matrix4f *src,
                              const Vector3f *v)
{
    dest->_11 = src->_11 * v->x;
    dest->_12 = src->_12 * v->x;
    dest->_13 = src->_13 * v->x;
    dest->_14 = src->_14 * v->x;
    dest->_21 = src->_21 * v->y;
    dest->_22 = src->_22 * v->y;
    dest->_23 = src->_23 * v->y;
    dest->_24 = src->_24 * v->y;
    dest->_31 = src->_31 * v->z;
    dest->_32 = src->_32 * v->z;
    dest->_33 = src->_33 * v->z;
    dest->_34 = src->_34 * v->z;
    dest->_41 = src->_41;
    dest->_42 = src->_42;
    dest->_43 = src->_43;
    dest->_44 = src->_44;
}
/**
 * mat4_scale:  Given a coordinate transformation matrix, apply a scaling
 * operation by the given vector and return the resulting matrix.
 *
 * [Parameters]
 *     dest: Pointer to matrix in which to store result.
 *     src: Pointer to input matrix.
 *     v: Pointer to vector containing scale factors along each axis.
 */
Given a coordinate transformation matrix, apply a scaling
operation by the given vector and return the resulting matrix.

[Parameters]
dest: Pointer to matrix in which to store result.
src: Pointer to input matrix.
v: Pointer to vector containing scale factors along each axis.
Given a coordinate transformation matrix apply a scaling operation by the given vector and return the resulting matrix . [ Parameters ] dest : Pointer to matrix in which to store result . src : Pointer to input matrix . v : Pointer to vector containing scale factors along each axis .
static inline void mat4_scale(Matrix4f *dest, const Matrix4f *src,
                              const Vector3f *v)
{
    dest->_11 = src->_11 * v->x;
    dest->_12 = src->_12 * v->x;
    dest->_13 = src->_13 * v->x;
    dest->_14 = src->_14 * v->x;
    dest->_21 = src->_21 * v->y;
    dest->_22 = src->_22 * v->y;
    dest->_23 = src->_23 * v->y;
    dest->_24 = src->_24 * v->y;
    dest->_31 = src->_31 * v->z;
    dest->_32 = src->_32 * v->z;
    dest->_33 = src->_33 * v->z;
    dest->_34 = src->_34 * v->z;
    dest->_41 = src->_41;
    dest->_42 = src->_42;
    dest->_43 = src->_43;
    dest->_44 = src->_44;
}
static inline void mat4_scale ( Matrix4f * dest , const Matrix4f * src , const Vector3f * v ) { dest -> _11 = src -> _11 * v -> x ; dest -> _12 = src -> _12 * v -> x ; dest -> _13 = src -> _13 * v -> x ; dest -> _14 = src -> _14 * v -> x ; dest -> _21 = src -> _21 * v -> y ; dest -> _22 = src -> _22 * v -> y ; dest -> _23 = src -> _23 * v -> y ; dest -> _24 = src -> _24 * v -> y ; dest -> _31 = src -> _31 * v -> z ; dest -> _32 = src -> _32 * v -> z ; dest -> _33 = src -> _33 * v -> z ; dest -> _34 = src -> _34 * v -> z ; dest -> _41 = src -> _41 ; dest -> _42 = src -> _42 ; dest -> _43 = src -> _43 ; dest -> _44 = src -> _44 ; }
mat4_scale:  Given a coordinate transformation matrix, apply a scaling
 operation by the given vector and return the resulting matrix.
mat4_scale : Given a coordinate transformation matrix apply a scaling operation by the given vector and return the resulting matrix .