rename _dup (duplicate) to _copy

I think _copy is better and COMMON  name for duplicating/copying
vector, matrices
This commit is contained in:
Recep Aslantas
2017-02-23 09:57:28 +03:00
parent 595ad42cb8
commit 4462a84f4a
13 changed files with 46 additions and 46 deletions

View File

@@ -26,7 +26,7 @@
*/
CGLM_INLINE
void
glm_mat3_dup(mat3 mat, mat3 dest) {
glm_mat3_copy(mat3 mat, mat3 dest) {
glm__memcpy(float, dest, mat, sizeof(mat3));
}
@@ -217,9 +217,9 @@ CGLM_INLINE
void
glm_mat3_swap_col(mat3 mat, int col1, int col2) {
vec3 tmp;
glm_vec_dup(mat[col1], tmp);
glm_vec_dup(mat[col2], mat[col1]);
glm_vec_dup(tmp, mat[col2]);
glm_vec_copy(mat[col1], tmp);
glm_vec_copy(mat[col2], mat[col1]);
glm_vec_copy(tmp, mat[col2]);
}
/*!