cf_make_rotation¶
Category: math
GitHub: cute_math.h
Returns a CF_M3x2 that represents a rotation.
CF_M3x2 cf_make_rotation(float radians) { CF_SinCos sc = cf_sincos(radians); CF_M3x2 m; m.m.x = cf_v2(sc.c, -sc.s); m.m.y = cf_v2(sc.s, sc.c); m.p = cf_v2(0, 0); 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_invert
cf_make_transform_TSR