Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
matrix_mul(3)			Allegro	manual			 matrix_mul(3)

NAME
       matrix_mul,  matrix_mul_f  - Multiplies two matrices. Allegro game pro-
       gramming	library.

SYNOPSIS
       #include	<allegro.h>

       void matrix_mul(const MATRIX *m1, const MATRIX *m2, MATRIX *out);

       void matrix_mul_f(const MATRIX_f	 *m1,  const  MATRIX_f	*m2,  MATRIX_f
       *out);

DESCRIPTION
       Multiplies  two	matrices, storing the result in	out (this may be a du-
       plicate 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 con-
       catenated in this way. Note that	matrix multiplication is not  commuta-
       tive, ie. matrix_mul(m1,	m2) != matrix_mul(m2, m1).

SEE ALSO
       apply_matrix(3),	exquat(3), exscn3d(3)

Allegro				 version 4.4.2			 matrix_mul(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=matrix_mul&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help