[core] Use constexpr when possible

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-24 08:36:38 +00:00
parent 936e05283c
commit 42f059f8f7
90 changed files with 258 additions and 259 deletions

View File

@@ -48,9 +48,9 @@ public:
bool Update(ScreenBase const & screen) override
{
static double const kVisibleTolerance = 0.1;
static double const kVisibleStartAngle = math::DegToRad(0.0 + kVisibleTolerance);
static double const kVisibleEndAngle = math::DegToRad(360.0 - kVisibleTolerance);
static double constexpr kVisibleTolerance = 0.1;
static double constexpr kVisibleStartAngle = math::DegToRad(0.0 + kVisibleTolerance);
static double constexpr kVisibleEndAngle = math::DegToRad(360.0 - kVisibleTolerance);
auto const angle = static_cast<float>(ang::AngleIn2PI(screen.GetAngle()));