diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 40175f9..a5115ef 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -662,7 +662,7 @@ namespace omath template requires std::is_floating_point_v [[nodiscard("You must use extracted rotation")]] - Vector3 mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept + constexpr Vector3 mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept { const auto scale = mat_extract_scale(mat); const auto m00 = mat.at(0, 0) / scale.x;