GET_VECTOR_ROTATION_QUAT(3alleg4)
β¨ get_vector_rotation_quat β¨
okay bestie, welcome to the Allegro manual, section 3alleg4 π this one's a little math baddie and she EATS π
π NAME π
get_vector_rotation_quat β constructs a quaternion to rotate points around a vector. Allegro game programming library. π¦
πΈ SYNOPSIS πΈ
#include <allegro.h>
void get_vector_rotation_quat(QUAT *q, float x, y, z, float a);
π DESCRIPTION π
so basically? this function constructs a quaternion for you, and that quaternion will rotate points around the vector you specify with x, y, z β by the angle a that you also specify. πβ¨
and the tea on that angle: it's given in binary, 256 degrees to a circle format. not your regular degrees, not radians, we're doing the 256-to-a-circle thing. iykyk π«Ά
that's literally the whole page, bestie, she's short and she knows it π
signing off from Allegro version 4.4.3 β mwah, 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