[drape] Fix sqrt constexpr

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-10-29 10:00:40 +00:00
parent 12b9504daa
commit 210b4df8b2
6 changed files with 9 additions and 9 deletions

View File

@@ -382,8 +382,8 @@ void RouteShape::PrepareMarkersGeometry(std::vector<SubrouteMarker> const & mark
{
ASSERT(!markers.empty(), ());
static float constexpr kSqrt3 = sqrt(3.0f);
static float constexpr kSqrt2 = sqrt(2.0f);
static float constexpr kSqrt3 = 1.732050808f;
static float constexpr kSqrt2 = 1.414213562f;
static float constexpr kInnerRadius = 0.6f;
static float constexpr kOuterRadius = 1.0f;