Extend Pose

This commit is contained in:
Georg Hagen
2024-07-01 14:47:30 +02:00
parent 83a1dd9a04
commit 3dd7269470

View File

@@ -51,8 +51,14 @@ namespace OpenVulkano::Math
[[nodiscard]] const Quaternion<T>& GetOrientation() const { return m_orientation; }
void SetOrientation(const Math::Quaternion<T>& orientation) { m_orientation = orientation; }
void SetOrientation(const Math::Vector3_SIMD<T>& eulerAngle) { m_orientation = Math::Utils::qua(eulerAngle); }
[[nodiscard]] const Vector3_SIMD<T>& GetPosition() const { return m_position; }
void SetPosition(const Math::Vector3_SIMD<T>& pos) { m_position = pos; }
[[nodiscard]] Pose<T> Interpolate(const Pose<T>& otherPose, T mixFactor) const
{
return Pose<T>(