Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

matrix_mul, matrix_mul_f - Multiplies two matrices. Allegro game programming library.

Description

       Multiplies two matrices, storing the result in out (this may be a duplicate of one of the input matrices,
       but  it  is faster when the inputs and output are all different). The resulting matrix will have the same
       effect as the combination of m1 and m2, ie. when applied to a point p, (p * out) = ((p * m1) *  m2).  Any
       number  of  transformations  can  be  concatenated  in  this  way. Note that matrix multiplication is not
       commutative, ie. matrix_mul(m1, m2) != matrix_mul(m2, m1).

Name

       matrix_mul, matrix_mul_f - Multiplies two matrices. Allegro game programming library.

See Also

apply_matrix(3alleg4), exquat(3alleg4), exscn3d(3alleg4)

Allegro                                           version 4.4.3                              matrix_mul(3alleg4)

Synopsis

#include<allegro.h>voidmatrix_mul(constMATRIX*m1,constMATRIX*m2,MATRIX*out);voidmatrix_mul_f(constMATRIX_f*m1,constMATRIX_f*m2,MATRIX_f*out);

See Also