get_vector_rotation_quat(3)
β¨ get_vector_rotation_quat β¨
okay bestie, welcome to the Allegro manual, section 3, and today's main character is get_vector_rotation_quat π
she lives in the Allegro game programming library and she is here to spin your points around a vector, no cap.
πΈ NAME πΈ
get_vector_rotation_quat β constructs a quaternion to rotate points around a vector. it's giving 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 β¨ and that quaternion will rotate points around the vector you specify with x, y, z β and it does the spin by the angle you specify with a.
and here's the little detail that matters, bestie, do not skip it π the angle a is given in binary, 256 degrees to a circle format. yes. 256 degrees. a whole circle is 256. that's the vibe, that's the format, periodt.
so likeβ¦ not radians, not the regular 360-degrees degrees. it's the 256-to-a-circle flavor, iykyk π«
ngl if you pass in a regular-degree angle here she will simply rotate your points to somewhere cursed π 256 degrees to a circle, fr fr.
π SEE ALSO π
there's literally nothing else listed here, bestie β this is the whole page, and honestly? she ate π
and that's the whole thing, gorgeous π«Ά this page is from Allegro, version 4.4.3, and yeah it's dated β so go forth and rotate your points around a vector, 256-degrees-to-a-circle style, and slay πβ¨ππ¦πΈ
π¦ 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