diff options
author | Sven Göthel <[email protected]> | 2024-04-13 18:01:04 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-04-13 18:01:04 +0200 |
commit | 5d7261c7264d849493077cfef8e20042d27d7aba (patch) | |
tree | d9d792e2cb1bdf54781b3653b63b5b52937ecf6f /include/jau | |
parent | 72e30b731546d333175eb09d1a180423f7620551 (diff) |
math: Quaternion::set() must be constexpr
Diffstat (limited to 'include/jau')
-rw-r--r-- | include/jau/math/quaternion.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jau/math/quaternion.hpp b/include/jau/math/quaternion.hpp index fa2a051..04b6b7c 100644 --- a/include/jau/math/quaternion.hpp +++ b/include/jau/math/quaternion.hpp @@ -234,7 +234,7 @@ class Quaternion { * Set all values of this quaternion using the given components. * @return this quaternion for chaining. */ - Quaternion& set(float x, float y, float z, float w) noexcept { + constexpr Quaternion& set(const float x, const float y, const float z, const float w) noexcept { m_x = x; m_y = y; m_z = z; |