Skip to content

cf_mul_m2_f

Category: math
GitHub: cute_math.h


Scales each column of matrix a by scalar b.

CF_M2x2 cf_mul_m2_f(CF_M2x2 a, float b) { CF_M2x2 c; c.x = cf_mul_v2_f(a.x, b); c.y = cf_mul_v2_f(a.y, b); return c; }

cf_mul
CF_M2x2
cf_mul_m2
cf_mul_m2_v2