logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

get_align_matrix - Rotates a matrix to align it along specified coordinate vectors. Allegro game

Description

       Rotates a matrix so that it is  aligned  along  the  specified  coordinate  vectors  (they  need  not  be
       normalized  or  perpendicular,  but  the up and front must not be equal). A front vector of 0,0,-1 and up
       vector of 0,1,0 will return the identity matrix.

Name

       get_align_matrix  -  Rotates  a  matrix  to  align  it  along  specified coordinate vectors. Allegro game
       programming library.

See Also

apply_matrix(3alleg4), get_camera_matrix(3alleg4)

Allegro                                           version 4.4.3                        get_align_matrix(3alleg4)

Synopsis

#include<allegro.h>voidget_align_matrix(MATRIX*m,fixedxfront,yfront,zfront,fixedxup,fixedyup,fixedzup);

See Also