32#ifndef eman__quaternion_h__
33#define eman__quaternion_h__ 1
68 explicit Quaternion(
const vector<float> & matrix3);
103 vector < float >
as_list()
const;
Quaternion is used in Rotation and Transformation to replace Euler angles.
vector< float > to_matrix3() const
static Quaternion interpolate(const Quaternion &from, const Quaternion &to, float percent)
Vec3f rotate(const Vec3f &v) const
Quaternion & operator*=(const Quaternion &q)
vector< float > as_list() const
Quaternion create_inverse() const
Quaternion & operator/=(const Quaternion &q)
Quaternion & operator+=(const Quaternion &q)
Quaternion & operator-=(const Quaternion &q)
EMData * sqrt() const
return square root of current image
EMData * operator+(const EMData &em, float n)
bool operator!=(const EMObject &e1, const EMObject &e2)
EMData * operator-(const EMData &em, float n)
EMData * operator/(const EMData &em, float n)
EMData * operator*(const EMData &em, float n)
bool operator==(const EMObject &e1, const EMObject &e2)