Skip to content

cf_mul_m32

Category: math
GitHub: cute_math.h


Composes two 3x2 (affine) matrices, returning the matrix equivalent to applying b then a.

CF_M3x2 cf_mul_m32(CF_M3x2 a, CF_M3x2 b) { CF_M3x2 c; c.m = cf_mul_m2(a.m, b.m); c.p = cf_add(cf_mul_m2_v2(a.m, b.p), a.p); return c; }

cf_mul
CF_M3x2
cf_mul_m32_v2