Skip to content

Commit

Permalink
coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Mar 31, 2024
1 parent 929963c commit 8396bbf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions include/cglm/mat2x3.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ glm_mat2x3_mul(mat2x3 m1, mat3x2 m2, mat3 dest) {
CGLM_INLINE
void
glm_mat2x3_mulv(mat2x3 m, vec2 v, vec3 dest) {
float v0, v1;

v0 = v[0]; v1 = v[1];
float v0 = v[0]; v1 = v[1];

dest[0] = m[0][0] * v0 + m[1][0] * v1;
dest[1] = m[0][1] * v0 + m[1][1] * v1;
Expand Down
4 changes: 1 addition & 3 deletions include/cglm/mat2x4.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ glm_mat2x4_mul(mat2x4 m1, mat4x2 m2, mat4 dest) {
CGLM_INLINE
void
glm_mat2x4_mulv(mat2x4 m, vec2 v, vec4 dest) {
float v0, v1;

v0 = v[0], v1 = v[1];
float v0 = v[0], v1 = v[1];

dest[0] = m[0][0] * v0 + m[1][0] * v1;
dest[1] = m[0][1] * v0 + m[1][1] * v1;
Expand Down
4 changes: 1 addition & 3 deletions include/cglm/mat3x2.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ glm_mat3x2_mul(mat3x2 m1, mat2x3 m2, mat2 dest) {
CGLM_INLINE
void
glm_mat3x2_mulv(mat3x2 m, vec3 v, vec2 dest) {
float v0, v1, v2;

v0 = v[0], v1 = v[1], v2 = v[2];
float v0 = v[0], v1 = v[1], v2 = v[2];

dest[0] = m[0][0] * v0 + m[1][0] * v1 + m[2][0] * v2;
dest[1] = m[0][1] * v0 + m[1][1] * v1 + m[2][1] * v2;
Expand Down

0 comments on commit 8396bbf

Please sign in to comment.