get_transformation_matrix(3)

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

πŸ’– NAME β€” get_transformation_matrix πŸ’–

get_transformation_matrix(3)? bestie, you just opened the Allegro manual and this function is here to serve. get_transformation_matrix β€” constructs X, Y, Z rotation matrices with an angle and scaling. It's from the Allegro game programming library, fr fr.


✨ SYNOPSIS ✨

#include <allegro.h>

void get_transformation_matrix(MATRIX *m, fixed scale, fixed xrot, yrot,
zrot, x, y, z);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea, bestie πŸ“. get_transformation_matrix constructs a transformation matrix. That matrix is lowkey gonna do three iconic things, in order:

  1. Rotate points around all three axes by the specified amounts. Those amounts are in binary, 256 degrees to a circle format β€” yes, that's the format, no cap.
  2. Scale the result by the specified amount. And listen: if you want no change of scale, you pass 1.
  3. Translate to the requested x, y, z position.

That's it. That's the transformation matrix main character energy πŸ’…βœ¨.


πŸ‘‘ SEE ALSO πŸ‘‘


Allegro version 4.4.3, signing off from the get_transformation_matrix(3) page πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from