get_y_rotate_matrix(3alleg4)
β¨ NAME β¨
okay so bestie, this is the Allegro manual, and today's main characters are get_y_rotate_matrix, get_y_rotate_matrix_f β Construct Y axis rotation matrices. They're part of the Allegro game programming library, and the page title is get_y_rotate_matrix(3alleg4). π
π¦ SYNOPSIS π¦
like, here's the exact shape of them:
#include <allegro.h>
void get_y_rotate_matrix(MATRIX *m, fixed r);
void get_y_rotate_matrix_f(MATRIX_f *m, float r);
πΈ DESCRIPTION πΈ
okay so both functions construct Y axis rotation matrices, and they store the result in m β the pointer you hand over. no cap. When you apply one of these matrices to a point, it will rotate that point about the Y axis by the angle you specified. And that angle is given in binary, 256 degrees to a circle format. So yeah, it's giving binary-angle energy, not your usual 360-degree situation. get_y_rotate_matrix takes a fixed r, while get_y_rotate_matrix_f takes a float r. π
π₯ SEE ALSO π₯
apply_matrix(3alleg4)get_rotation_matrix(3alleg4)get_x_rotate_matrix(3alleg4)get_z_rotate_matrix(3alleg4)
that's the whole page, bestie. Allegro version 4.4.3 β periodt. go rotate something cute. πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms