aboutsummaryrefslogtreecommitdiffstats
path: root/include/jau
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-04-13 18:01:04 +0200
committerSven Göthel <[email protected]>2024-04-13 18:01:04 +0200
commit5d7261c7264d849493077cfef8e20042d27d7aba (patch)
treed9d792e2cb1bdf54781b3653b63b5b52937ecf6f /include/jau
parent72e30b731546d333175eb09d1a180423f7620551 (diff)
math: Quaternion::set() must be constexpr
Diffstat (limited to 'include/jau')
-rw-r--r--include/jau/math/quaternion.hpp2
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;