21 #if MATH_CHECK_INDEXES 38 Quaternion(
const float _q1,
const float _q2,
const float _q3,
const float _q4) :
39 q1(_q1), q2(_q2), q3(_q3), q4(_q4)
45 q1(_q[0]), q2(_q[1]), q3(_q[2]), q4(_q[3])
50 void operator()(
const float _q1,
const float _q2,
const float _q3,
const float _q4)
61 return isnan(q1) || isnan(q2) || isnan(q3) || isnan(q4);
76 void from_euler(
float roll,
float pitch,
float yaw);
104 void to_euler(
float &roll,
float &pitch,
float &yaw)
const;
125 #if MATH_CHECK_INDEXES 133 const float *_v = &
q1;
134 #if MATH_CHECK_INDEXES
void to_euler(float &roll, float &pitch, float &yaw) const
Quaternion(const float _q[4])
Quaternion operator/(const Quaternion &v) const
float get_euler_yaw() const
void to_axis_angle(Vector3f &v)
void from_vector312(float roll, float pitch, float yaw)
Quaternion(const float _q1, const float _q2, const float _q3, const float _q4)
void from_euler(float roll, float pitch, float yaw)
Quaternion & operator*=(const Quaternion &v)
const float & operator[](uint8_t i) const
Quaternion operator*(const Quaternion &v) const
void from_rotation_matrix(const Matrix3f &m)
float get_euler_roll() const
float get_euler_pitch() const
void rotation_matrix(Matrix3f &m) const
void from_axis_angle(Vector3f v)
void operator()(const float _q1, const float _q2, const float _q3, const float _q4)
void from_axis_angle_fast(Vector3f v)
Vector3f to_vector312(void) const
float & operator[](uint8_t i)
Quaternion inverse(void) const
void rotate(const Vector3f &v)
void earth_to_body(Vector3f &v) const
void rotation_matrix_norm(Matrix3f &m) const
void rotate_fast(const Vector3f &v)