1 #ifndef OPAL_QUATERNION_H
2 #define OPAL_QUATERNION_H
7 template <
class,
unsigned>
14 Quaternion(
const double &,
const double &,
const double &,
const double &);
51 Vektor<double, 4>(1.0, 0.0, 0.0, 0.0)
61 Vektor<double, 4>(x0, x1, x2, x3)
77 return dot(*
this, *
this);
Tps< T > sqrt(const Tps< T > &x)
Square root.
Quaternion getQuaternion(Vector_t vec, Vector_t reference)
double dot(const Vector3D &lhs, const Vector3D &rhs)
Vector dot product.
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
constexpr double e
The value of.
Vector_t rotate(const Vector_t &) const
Quaternion conjugate() const
Quaternion inverse() const
Tenzor< double, 3 > getRotationMatrix() const
Quaternion & operator*=(const Quaternion &)
Quaternion operator/(const double &) const
Quaternion operator*(const double &) const
Quaternion & operator=(const Quaternion &)=default