comparison src/dmvecmat.c @ 2414:69a5af2eb1ea

Remove useless dmMemset().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 23:27:01 +0200
parents 696c58784635
children
comparison
equal deleted inserted replaced
2413:902cc22018a1 2414:69a5af2eb1ea
77 77
78 /* Set matrix to unit-matrix 78 /* Set matrix to unit-matrix
79 */ 79 */
80 void dm_matrix_unit(DMMatrix *mat) 80 void dm_matrix_unit(DMMatrix *mat)
81 { 81 {
82 dmMemset(mat, 0, sizeof(DMMatrix)); 82 memset(mat, 0, sizeof(DMMatrix));
83 mat->m[0][0] = 1.0f; 83 mat->m[0][0] = 1.0f;
84 mat->m[1][1] = 1.0f; 84 mat->m[1][1] = 1.0f;
85 mat->m[2][2] = 1.0f; 85 mat->m[2][2] = 1.0f;
86 mat->m[3][3] = 1.0f; 86 mat->m[3][3] = 1.0f;
87 } 87 }