matrix_to_quat(3)

๐Ÿ“ฆ version 4.4.3.1, in fedora 43, fedora 44

๐Ÿ’– matrix_to_quat(3) ๐Ÿ’–

okay bestie, welcome to the Allegro manual โ€” yes, that Allegro, the game programming library ๐ŸŽฎโœจ this one's a lil math baddie and she's actually so fun once u get her vibe.


๐ŸŒธ NAME ๐ŸŒธ

matrix_to_quat โ€” constructs a quaternion from a rotation matrix. from the Allegro game programming library ๐Ÿซถ


โœจ SYNOPSIS โœจ

#include <allegro.h>

void matrix_to_quat(const MATRIX_f *m, QUAT *q);

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so basically: she takes a rotation matrix and she constructs a quaternion out of it. that's it, that's the whole job. ๐Ÿ’…

the translation? discarded. gone. not invited. ๐Ÿ™ˆ it gets thrown away during the conversion, so don't come crying to her about ur matrix's position data, she literally does not see it.

โš ๏ธ okay real talk tho: use get_align_matrix_f() if the matrix is not orthonormalized, because otherwise strange things may happen. and by "strange things" we mean cursed math nonsense, not cute quirky strange. fix ur matrix first, bestie, i'm begging ๐Ÿฅบ

๐ŸŽ€ sign-off ๐ŸŽ€

and that's the whole page!! this lil icon lives in Allegro, version 4.4.3, and she's filed under matrix_to_quat(3) in the manual. go forth and rotate ur polygons responsibly, mwah ๐Ÿ’‹๐ŸŒˆโญ

๐Ÿ“ฆ where this page comes from