Cleaned up styling in hmm_mat4 operator[]

This commit is contained in:
Zakary Strange
2020-01-11 20:25:14 -08:00
parent 69f8a38912
commit ea6ab8e64e

View File

@@ -1,5 +1,5 @@
/* /*
HandmadeMath.h v1.10.1 HandmadeMath.h v1.10.3
This is a single header file with a bunch of useful functions for game and This is a single header file with a bunch of useful functions for game and
graphics math operations. graphics math operations.
@@ -76,7 +76,7 @@
CREDITS CREDITS
Written by Zakary Strange (zak@strangedev.net && @strangezak) Written by Zakary Strange (zakarystrange@gmail.net && @strangezak)
Functionality: Functionality:
Matt Mascarenhas (@miblo_) Matt Mascarenhas (@miblo_)
@@ -368,15 +368,15 @@ typedef union hmm_mat4
#ifdef __cplusplus #ifdef __cplusplus
inline hmm_vec4 operator[](const int &Index) inline hmm_vec4 operator[](const int &Index)
{ {
float* col = Elements[Index]; float* Column = Elements[Index];
hmm_vec4 result; hmm_vec4 Result;
result.Elements[0] = col[0]; Result.Elements[0] = Column[0];
result.Elements[1] = col[1]; Result.Elements[1] = Column[1];
result.Elements[2] = col[2]; Result.Elements[2] = Column[2];
result.Elements[3] = col[3]; Result.Elements[3] = Column[3];
return result; return Result;
} }
#endif #endif
} hmm_mat4; } hmm_mat4;