Browse Source
Merge pull request #1930 from lioncash/common
common/quaternion: Ensure that w is always initialized
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/common/quaternion.h
|
|
|
@ -12,7 +12,7 @@ template <typename T> |
|
|
|
class Quaternion { |
|
|
|
public: |
|
|
|
Math::Vec3<T> xyz; |
|
|
|
T w; |
|
|
|
T w{}; |
|
|
|
|
|
|
|
Quaternion<decltype(-T{})> Inverse() const { |
|
|
|
return {-xyz, w}; |
|
|
|
|