7 #ifndef NAZARA_EULERANGLES_HPP 8 #define NAZARA_EULERANGLES_HPP 10 #include <Nazara/Core/String.hpp> 11 #include <Nazara/Math/Quaternion.hpp> 12 #include <Nazara/Math/Vector3.hpp> 16 struct SerializationContext;
72 template<
typename T> std::ostream& operator<<(std::ostream& out, const Nz::EulerAngles<T>& angles);
75 #include <Nazara/Math/EulerAngles.inl> 77 #endif // NAZARA_EULERANGLES_HPP Quaternion< T > ToQuaternion() const
Converts the euler angle to quaternion.
Definition: EulerAngles.inl:198
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
bool operator==(const EulerAngles &angles) const
Compares the euler angle to other one.
Definition: EulerAngles.inl:300
bool Unserialize(SerializationContext &context, bool *value)
Unserializes a boolean.
Definition: Algorithm.inl:279
void MakeZero()
Makes the euler angle (0, 0, 0)
Definition: EulerAngles.inl:86
Core class that represents a string.
Definition: String.hpp:22
EulerAngles operator+(const EulerAngles &angles) const
Adds the components of the euler angle with other euler angle.
Definition: EulerAngles.inl:236
String ToString() const
Gives a string representation.
Definition: EulerAngles.inl:221
Structure containing a serialization/unserialization context states.
Definition: SerializationContext.hpp:18
EulerAngles & operator+=(const EulerAngles &angles)
Adds the components of other euler angle to this euler angle.
Definition: EulerAngles.inl:266
EulerAngles & Normalize()
Normalizes the euler angle.
Definition: EulerAngles.inl:101
static EulerAngles Zero()
Shorthand for the euler angle (0, 0, 0)
Definition: EulerAngles.inl:328
bool Serialize(SerializationContext &context, bool value)
Serializes a boolean.
Definition: Algorithm.inl:214
EulerAngles & Set(T P, T Y, T R)
Sets the components of the euler angle.
Definition: EulerAngles.inl:120
EulerAngles operator-(const EulerAngles &angles) const
Substracts the components of the euler angle with other euler angle.
Definition: EulerAngles.inl:251
Math class that represents an Euler angle. Those describe a rotation transformation by rotating an ob...
Definition: EulerAngles.hpp:19
EulerAngles & operator-=(const EulerAngles &angles)
Substracts the components of other euler angle to this euler angle.
Definition: EulerAngles.inl:283
bool operator!=(const EulerAngles &angles) const
Compares the euler angle to other one.
Definition: EulerAngles.inl:315
Math class that represents an element of the quaternions.
Definition: Matrix4.hpp:20