437[[nodiscard]]
constexpr Angle operator""_deg(
long double angle);
448[[nodiscard]]
constexpr Angle operator""_deg(
unsigned long long int angle);
459[[nodiscard]]
constexpr Angle operator""_rad(
long double angle);
470[[nodiscard]]
constexpr Angle operator""_rad(
unsigned long long int angle);
475#include <SFML/System/Angle.inl>
Represents an angle value.
Definition Angle.hpp:35
constexpr Angle()=default
Default constructor.
static const Angle Zero
Predefined 0 degree angle value.
Definition Angle.hpp:135
constexpr float asRadians() const
Return the angle's value in radians.
constexpr Angle operator*(Angle left, float right)
Overload of binary * operator to scale an angle value.
constexpr Angle operator%(Angle left, Angle right)
Overload of binary % operator to compute modulo of an angle value.
constexpr Angle & operator+=(Angle &left, Angle right)
Overload of binary += operator to add/assign two angle values.
constexpr bool operator<=(Angle left, Angle right)
Overload of <= operator to compare two angle values.
constexpr Angle & operator*=(Angle &left, float right)
Overload of binary *= operator to scale/assign an angle value.
constexpr Angle operator*(float left, Angle right)
Overload of binary * operator to scale an angle value.
constexpr Angle wrapSigned() const
Wrap to a range such that -180° <= angle < 180°
constexpr Angle operator-(Angle right)
Overload of unary - operator to negate an angle value.
constexpr Angle & operator-=(Angle &left, Angle right)
Overload of binary -= operator to subtract/assign two angle values.
friend constexpr Angle radians(float angle)
Construct an angle value from a number of radians.
constexpr float operator/(Angle left, Angle right)
Overload of binary / operator to compute the ratio of two angle values.
friend constexpr Angle degrees(float angle)
Construct an angle value from a number of degrees.
constexpr Angle & operator/=(Angle &left, float right)
Overload of binary /= operator to scale/assign an angle value.
constexpr Angle operator+(Angle left, Angle right)
Overload of binary + operator to add two angle values.
constexpr bool operator>=(Angle left, Angle right)
Overload of >= operator to compare two angle values.
constexpr bool operator!=(Angle left, Angle right)
Overload of != operator to compare two angle values.
constexpr bool operator>(Angle left, Angle right)
Overload of > operator to compare two angle values.
constexpr bool operator<(Angle left, Angle right)
Overload of < operator to compare two angle values.
constexpr Angle wrapUnsigned() const
Wrap to a range such that 0° <= angle < 360°
constexpr bool operator==(Angle left, Angle right)
Overload of == operator to compare two angle values.
constexpr Angle operator-(Angle left, Angle right)
Overload of binary - operator to subtract two angle values.
constexpr float asDegrees() const
Return the angle's value in degrees.
constexpr Angle & operator%=(Angle &left, Angle right)
Overload of binary %= operator to compute/assign remainder of an angle value.
constexpr Angle operator/(Angle left, float right)
Overload of binary / operator to scale an angle value.
Definition BlendMode.hpp:34
constexpr Angle radians(float angle)
Construct an angle value from a number of radians.
constexpr Angle degrees(float angle)
Construct an angle value from a number of degrees.