mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 20:34:58 +00:00
improve translate_make
This commit is contained in:
@@ -194,8 +194,8 @@ glm_translate_z(mat4 m, float z) {
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_translate_make(mat4 m, vec3 v) {
|
||||
mat4 t = GLM_MAT4_IDENTITY_INIT;
|
||||
glm_translate_to(t, v, m);
|
||||
glm_mat4_identity(m);
|
||||
glm_vec_copy(v, m[3]);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user