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