get_translation_matrix(3)

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

✨ get_translation_matrix(3) ✨

okay bestie, so this is a page straight out of the Allegro manual β€” the Allegro game programming library β€” and it's all about the little glow-up where you make a matrix that shoves stuff sideways. πŸ¦‹


πŸ’– NAME πŸ’–

get_translation_matrix, get_translation_matrix_f β€” constructs a translation matrix. Allegro game programming library. no cap, that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

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

πŸŽ€ DESCRIPTION πŸŽ€

okay so picture this: you call it, and it constructs a translation matrix, storing it right there in m. that's it, that's the whole vibe. ✨

and here's the tea β€” when you apply that matrix to the point (px, py, pz), it produces the point (px+x, py+y, pz+z). literally just adds each number to its matching coordinate. math said "slay" and meant it. πŸ”₯

in other words: it moves things sideways. iconic behaviour tbh. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie πŸ’œ this was Allegro version 4.4.3 dropping get_translation_matrix(3) β€” go forth and translate your little hearts out. mwah. πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from