This commit is contained in:
2026-06-15 00:45:16 +03:00
parent 47dcee037e
commit 92da8bf0a6
+1 -1
View File
@@ -662,7 +662,7 @@ namespace omath
template<class Type = float, MatStoreType St = MatStoreType::ROW_MAJOR> template<class Type = float, MatStoreType St = MatStoreType::ROW_MAJOR>
requires std::is_floating_point_v<Type> requires std::is_floating_point_v<Type>
[[nodiscard("You must use extracted rotation")]] [[nodiscard("You must use extracted rotation")]]
Vector3<Type> mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept constexpr Vector3<Type> mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept
{ {
const auto scale = mat_extract_scale(mat); const auto scale = mat_extract_scale(mat);
const auto m00 = mat.at(0, 0) / scale.x; const auto m00 = mat.at(0, 0) / scale.x;