mirror of
https://github.com/recp/cglm.git
synced 2026-11-20 10:43:09 -06:00
use epsilon to compare results in glm_uniscaled()
This commit is contained in:
1 parent
f9824a8dc6
commit
5bda762df6
1 file changed
+1
-1
@@ -425,7 +425,7 @@ bool
|
|||||||
glm_uniscaled(mat4 m) {
|
glm_uniscaled(mat4 m) {
|
||||||
CGLM_ALIGN(8) vec3 s;
|
CGLM_ALIGN(8) vec3 s;
|
||||||
glm_decompose_scalev(m, s);
|
glm_decompose_scalev(m, s);
|
||||||
return glm_vec3_eq_all(s);
|
return glm_vec3_eq_eps(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in new issue
Block a user