From 458f51889ce0ef6756546d9ced169d9b0145903b Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Thu, 6 Jun 2024 22:35:21 +0300 Subject: [PATCH] Changed glm:: types to Math::, calling Math::Utils::decompose --- openVulkanoCpp/Math/Pose.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openVulkanoCpp/Math/Pose.hpp b/openVulkanoCpp/Math/Pose.hpp index d9dbd0a..6ee6506 100644 --- a/openVulkanoCpp/Math/Pose.hpp +++ b/openVulkanoCpp/Math/Pose.hpp @@ -30,13 +30,13 @@ namespace OpenVulkano::Math Pose(const Math::Matrix4 &matrix) { - glm::vec3 scale; - glm::quat rotation; - glm::vec3 translation; - glm::vec3 skew; - glm::vec4 perspective; + Math::Vector3_SIMD scale; + Math::Quaternion rotation; + Math::Vector3_SIMD translation; + Math::Vector3_SIMD skew; + Math::Vector4_SIMD perspective; - bool decomposed = glm::decompose((glm::mat4)matrix, scale, rotation, translation, skew, perspective); + bool decomposed = Math::Utils::decompose(matrix, scale, rotation, translation, skew, perspective); if(decomposed) { m_orientation = rotation;