Skip to content

Commit

Permalink
Merge pull request #6 from PA055/Angle-Bug-Fixes
Browse files Browse the repository at this point in the history
Angle Bugfixes
  • Loading branch information
sufferiing authored Jun 18, 2024
2 parents 7141994 + 85766dd commit a948ba1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/units/Angle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ constexpr Angle operator""_stRad(long double value) { return Angle(static_cast<d

constexpr Angle operator""_stRad(unsigned long long value) { return Angle(static_cast<double>(value)); }

constexpr Angle operator""_cDeg(long double value) { return static_cast<double>(value) * deg; }
constexpr Angle operator""_cDeg(long double value) { return 90_stDeg - static_cast<double>(value) * deg; }

constexpr Angle operator""_cDeg(unsigned long long value) { return static_cast<double>(value) * deg; }
constexpr Angle operator""_cDeg(unsigned long long value) { return 90_stDeg - static_cast<double>(value) * deg; }

constexpr Angle operator""_cRad(long double value) { return Angle(static_cast<double>(value)); }
constexpr Angle operator""_cRad(long double value) { return 90_stDeg - Angle(static_cast<double>(value)); }

constexpr Angle operator""_cRad(unsigned long long value) { return Angle(static_cast<double>(value)); }
constexpr Angle operator""_cRad(unsigned long long value) { return 90_stDeg - Angle(static_cast<double>(value)); }

// Angle functions
namespace units {
Expand Down

0 comments on commit a948ba1

Please sign in to comment.