mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-28 08:53:37 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user