matrix_mul(3alleg4) Allegro manual matrix_mul(3alleg4)NAME
matrix_mul, matrix_mul_f - Multiplies two matrices. Allegro game programming library.
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);
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 com-
mutative, ie. matrix_mul(m1, m2) != matrix_mul(m2, m1).
SEE ALSO apply_matrix(3alleg4), exquat(3alleg4), exscn3d(3alleg4)Allegro version 4.4.2 matrix_mul(3alleg4)
i have file1 which looks like:
x1 y1 z1
x2 y2 z2
...(and so on)
and file2 which looks like:
a11 a12 a13
a21 a22 a23
a31 a32 a33
and i want to replace file1 with the following values:
x1' y1' z1'
x2' y2' z2'
...(and so on) (2 Replies)
I have two files. Row id in File1 matches the column id in file2 (starting from column7 )except the last 2 characters. File1 has 50 rows and File 2 has 56 columns. If the id matches I want to multiply the value in column3 of File1 to the entire column in File2. and in the final output print only... (11 Replies)