get_vector_rotation_matrix(3)
π 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
- 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