mirror of https://github.com/AxioDL/zeus.git
Fix CQuaternion subscript bug
This commit is contained in:
parent
baaca3136b
commit
4dea46aa65
|
@ -160,8 +160,8 @@ public:
|
|||
return std::asin(-2.f * (x * z - w * y));
|
||||
}
|
||||
|
||||
inline float& operator[](size_t idx) {return (&x)[idx];}
|
||||
inline const float& operator[](size_t idx) const {return (&x)[idx];}
|
||||
inline float& operator[](size_t idx) {return (&w)[idx];}
|
||||
inline const float& operator[](size_t idx) const {return (&w)[idx];}
|
||||
|
||||
union
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue