DOKK / manpages / debian 12 / allegro4-doc / get_vector_rotation_quat.3alleg4.en
get_vector_rotation_quat(3alleg4) Allegro manual get_vector_rotation_quat(3alleg4)

get_vector_rotation_quat - Constructs a quaternion to rotate points around a vector. Allegro game programming library.

#include <allegro.h>

void get_vector_rotation_quat(QUAT *q, float x, y, z, float a);

Constructs a quaternion that will rotate points around the specified x,y,z vector by the specified angle (given in binary, 256 degrees to a circle format).

version 4.4.3 Allegro