mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2026-04-19 14:50:27 +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];
|
float Elements[2];
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
inline float &operator[](int &Index)
|
inline float &operator[](int Index)
|
||||||
{
|
{
|
||||||
return Elements[Index];
|
return Elements[Index];
|
||||||
}
|
}
|
||||||
@@ -367,7 +367,7 @@ typedef union hmm_vec3
|
|||||||
float Elements[3];
|
float Elements[3];
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
inline float &operator[](int &Index)
|
inline float &operator[](int Index)
|
||||||
{
|
{
|
||||||
return Elements[Index];
|
return Elements[Index];
|
||||||
}
|
}
|
||||||
@@ -431,7 +431,7 @@ typedef union hmm_vec4
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
inline float &operator[](int &Index)
|
inline float &operator[](int Index)
|
||||||
{
|
{
|
||||||
return Elements[Index];
|
return Elements[Index];
|
||||||
}
|
}
|
||||||
@@ -447,7 +447,7 @@ typedef union hmm_mat4
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
inline hmm_vec4 operator[](const int &Index)
|
inline hmm_vec4 operator[](const int Index)
|
||||||
{
|
{
|
||||||
float* col = Elements[Index];
|
float* col = Elements[Index];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user