mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 18:32:49 -06:00
Merge pull request #1930 from lioncash/common
common/quaternion: Ensure that w is always initialized
This commit is contained in:
commit
52726342bd
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ template <typename T>
|
||||||
class Quaternion {
|
class Quaternion {
|
||||||
public:
|
public:
|
||||||
Math::Vec3<T> xyz;
|
Math::Vec3<T> xyz;
|
||||||
T w;
|
T w{};
|
||||||
|
|
||||||
Quaternion<decltype(-T{})> Inverse() const {
|
Quaternion<decltype(-T{})> Inverse() const {
|
||||||
return {-xyz, w};
|
return {-xyz, w};
|
||||||
|
|
Loading…
Reference in a new issue