Skip to content

cf_mul_m2_v2

Category: math
GitHub: cute_math.h


Transforms vector b by matrix a.

CF_V2 cf_mul_m2_v2(CF_M2x2 a, CF_V2 b)   { CF_V2 c; c.x = a.x.x * b.x + a.y.x * b.y; c.y = a.x.y * b.x + a.y.y * b.y; return c; }

cf_mul
CF_M2x2
cf_mul_m2
cf_mul_m2_f