mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-12-28 15:44:33 +00:00
I guess you can't do that.
This commit is contained in:
@@ -316,7 +316,7 @@ typedef union hmm_vec2
|
||||
float Elements[2];
|
||||
|
||||
#ifdef __cplusplus
|
||||
inline float &operator[](int &Index)
|
||||
inline float &operator[](int Index)
|
||||
{
|
||||
return Elements[Index];
|
||||
}
|
||||
@@ -367,7 +367,7 @@ typedef union hmm_vec3
|
||||
float Elements[3];
|
||||
|
||||
#ifdef __cplusplus
|
||||
inline float &operator[](int &Index)
|
||||
inline float &operator[](int Index)
|
||||
{
|
||||
return Elements[Index];
|
||||
}
|
||||
@@ -431,7 +431,7 @@ typedef union hmm_vec4
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
inline float &operator[](int &Index)
|
||||
inline float &operator[](int Index)
|
||||
{
|
||||
return Elements[Index];
|
||||
}
|
||||
@@ -447,7 +447,7 @@ typedef union hmm_mat4
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
inline hmm_vec4 operator[](const int &Index)
|
||||
inline hmm_vec4 operator[](const int Index)
|
||||
{
|
||||
float* col = Elements[Index];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user