1 #ifndef CTL_MATRIX_UTILS_H 2 #define CTL_MATRIX_UTILS_H 10 typedef mat::Matrix<3, 3> Matrix3x3;
11 typedef mat::Matrix<3, 1> Vector3x1;
16 template <u
int Rows, u
int Cols>
17 QVector<double> toQVector(
const Matrix<Rows, Cols>& matrix);
20 Matrix3x3 rotationMatrix(
double angle, Qt::Axis axis);
21 Matrix3x3 rotationMatrix(
double angle,
const Vector3x1& axis);
22 Matrix3x3 rotationMatrix(
const Vector3x1& axis) noexcept;
23 Vector3x1 rotationAxis(
const Matrix3x3& rotMat,
bool lengthEqualsAngle =
true);
24 double rotationAngle(
const Matrix3x3& rotMat);
38 QVariant toVariant()
const;
39 void fromVariant(
const QVariant& variant);
45 #include "matrix_utils.tpp" 47 #endif // CTL_MATRIX_UTILS_H Definition: matrix_utils.h:27