get_translation_matrix(3)
β¨ 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
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms