get_vector_rotation_matrix(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– get_vector_rotation_matrix β€” NAME ✨

okay so bestie, meet get_vector_rotation_matrix and get_vector_rotation_matrix_f πŸŽ€ β€” they build you X, Y, Z rotation matrices with an angle. it's giving Allegro game programming library, and honestly? iconic.


🌸 SYNOPSIS 🌸

#include <allegro.h>

void get_vector_rotation_matrix(MATRIX *m, fixed x, y, z, fixed a);

void get_vector_rotation_matrix_f(MATRIX_f *m, float x, y, z, float a);

like yes, two whole flavours, one for the fixed girlies and one for the float girlies πŸ’…


✨ DESCRIPTION ✨

so what it does is construct a transformation matrix that rotates points around the x, y, z vector you hand it, by the angle you hand it πŸŒ€

and the angle? it's given in binary, 256 degrees to a circle format. no cap. that's the whole vibe β€” 256 little degrees make one full circle, so plan accordingly 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


Allegro version 4.4.3 🌈 that's the whole page bestie, go rotate something cute πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from