cf_make_transform_TSR¶
Category: math
GitHub: cute_math.h
Returns a CF_M3x2 that represents a translation + scale + rotation.
CF_M3x2 cf_make_transform_TSR(CF_V2 p, CF_V2 s, float radians) { CF_SinCos sc = cf_sincos(radians); CF_M3x2 m; m.m.x = cf_mul(cf_v2(sc.c, -sc.s), s.x); m.m.y = cf_mul(cf_v2(sc.s, sc.c), s.y); m.p = p; return m; }
Related Pages¶
CF_M3x2
cf_mul_m32_v2
cf_mul_m32
cf_make_identity
cf_make_translation
cf_make_scale
cf_make_scale_translation
cf_make_rotation
cf_invert