Add Quaternion to rotation matrix

This commit is contained in:
Milo Priegnitz
2024-06-22 15:30:31 +02:00
parent fc6339564a
commit a2cf92dd69
2 changed files with 20 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#ifndef STA_PEAK_QUATERNION_HPP
#define STA_PEAK_QUATERNION_HPP
#include <sta/math/linalg/matrix.hpp>
namespace sta
{
namespace math {
@@ -24,6 +25,8 @@ namespace sta
float norm();
matrix toRotationMatrix();
Quaternion normalized();
Quaternion operator*(const Quaternion& quat);