1matrix_mul(3)                   Allegro manual                   matrix_mul(3)
2
3
4

NAME

6       matrix_mul,  matrix_mul_f  - Multiplies two matrices. Allegro game pro‐
7       gramming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void matrix_mul(const MATRIX *m1, const MATRIX *m2, MATRIX *out);
14
15       void matrix_mul_f(const MATRIX_f  *m1,  const  MATRIX_f  *m2,  MATRIX_f
16       *out);
17

DESCRIPTION

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

SEE ALSO

29       apply_matrix(3), exquat(3), exscn3d(3)
30
31
32
33Allegro                          version 4.2.3                   matrix_mul(3)
Impressum