|
@@ -46,7 +46,7 @@ real_t Quaternion::angle_to(const Quaternion &p_to) const {
|
|
// This implementation uses XYZ convention (Z is the first rotation).
|
|
// This implementation uses XYZ convention (Z is the first rotation).
|
|
Vector3 Quaternion::get_euler_xyz() const {
|
|
Vector3 Quaternion::get_euler_xyz() const {
|
|
Basis m(*this);
|
|
Basis m(*this);
|
|
- return m.get_euler(Basis::EULER_ORDER_XYZ);
|
|
|
|
|
|
+ return m.get_euler(EULER_ORDER_XYZ);
|
|
}
|
|
}
|
|
|
|
|
|
// get_euler_yxz returns a vector containing the Euler angles in the format
|
|
// get_euler_yxz returns a vector containing the Euler angles in the format
|
|
@@ -58,7 +58,7 @@ Vector3 Quaternion::get_euler_yxz() const {
|
|
ERR_FAIL_COND_V_MSG(!is_normalized(), Vector3(0, 0, 0), "The quaternion must be normalized.");
|
|
ERR_FAIL_COND_V_MSG(!is_normalized(), Vector3(0, 0, 0), "The quaternion must be normalized.");
|
|
#endif
|
|
#endif
|
|
Basis m(*this);
|
|
Basis m(*this);
|
|
- return m.get_euler(Basis::EULER_ORDER_YXZ);
|
|
|
|
|
|
+ return m.get_euler(EULER_ORDER_YXZ);
|
|
}
|
|
}
|
|
|
|
|
|
void Quaternion::operator*=(const Quaternion &p_q) {
|
|
void Quaternion::operator*=(const Quaternion &p_q) {
|