1matrix_to_quat(3) Allegro manual matrix_to_quat(3)
2
3
4
6 matrix_to_quat - Constructs a quaternion from a rotation matrix. Alle‐
7 gro game programming library.
8
10 #include <allegro.h>
11
12
13 void matrix_to_quat(const MATRIX_f *m, QUAT *q);
14
16 Constructs a quaternion from a rotation matrix. Translation is dis‐
17 carded during the conversion. Use get_align_matrix_f() if the matrix is
18 not orthonormalized, because strange things may happen otherwise.
19
20
21
22
23Allegro version 4.2.2 matrix_to_quat(3)