Skip to content

Commit

Permalink
fix procedure comment on transform
Browse files Browse the repository at this point in the history
  • Loading branch information
duarm committed Dec 6, 2023
1 parent 340292c commit c431bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cglm/aabb2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit c431bbf

Please sign in to comment.