From 3dd72694709d25f1dc464df7ea133ce2e7d694a9 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Mon, 1 Jul 2024 14:47:30 +0200 Subject: [PATCH] Extend Pose --- openVulkanoCpp/Math/Pose.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openVulkanoCpp/Math/Pose.hpp b/openVulkanoCpp/Math/Pose.hpp index 22fbee8..6b1ae35 100644 --- a/openVulkanoCpp/Math/Pose.hpp +++ b/openVulkanoCpp/Math/Pose.hpp @@ -51,8 +51,14 @@ namespace OpenVulkano::Math [[nodiscard]] const Quaternion& GetOrientation() const { return m_orientation; } + void SetOrientation(const Math::Quaternion& orientation) { m_orientation = orientation; } + + void SetOrientation(const Math::Vector3_SIMD& eulerAngle) { m_orientation = Math::Utils::qua(eulerAngle); } + [[nodiscard]] const Vector3_SIMD& GetPosition() const { return m_position; } + void SetPosition(const Math::Vector3_SIMD& pos) { m_position = pos; } + [[nodiscard]] Pose Interpolate(const Pose& otherPose, T mixFactor) const { return Pose(