From c431bbf190f210c170a0a7996c84f0ca4e784f60 Mon Sep 17 00:00:00 2001 From: duarm Date: Wed, 6 Dec 2023 16:54:46 -0300 Subject: [PATCH] fix procedure comment on transform --- include/cglm/aabb2d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cglm/aabb2d.h b/include/cglm/aabb2d.h index ae44dad33..d7c6eee81 100644 --- a/include/cglm/aabb2d.h +++ b/include/cglm/aabb2d.h @@ -44,12 +44,12 @@ glm_aabb2d_transform(vec2 aabb[2], mat3 m, vec2 dest[2]) { glm_vec2_scale(m[1], aabb[0][1], ya); glm_vec2_scale(m[1], aabb[1][1], yb); - /* translation + min(xa, xb) + min(ya, yb) + min(za, zb) */ + /* translation + min(xa, xb) + min(ya, yb) */ glm_vec2(m[2], v[0]); glm_vec2_minadd(xa, xb, v[0]); glm_vec2_minadd(ya, yb, v[0]); - /* translation + max(xa, xb) + max(ya, yb) + max(za, zb) */ + /* translation + max(xa, xb) + max(ya, yb) */ glm_vec2(m[2], v[1]); glm_vec2_maxadd(xa, xb, v[1]); glm_vec2_maxadd(ya, yb, v[1]);