From 313c91b37bd543b9f2bf25c27ce7e198634a96d9 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 14 Feb 2025 18:04:17 +0000 Subject: [PATCH] Fix: Spaces before static. --- src/tree_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index d2aa82257d..ea35496a03 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -191,7 +191,7 @@ struct BlobHarmonic { * @param harmonics Harmonics data for the polygon. * @param shape Shape to fill with points. */ - static void CreateStarShapedPolygon(const int radius, std::span harmonics, std::span shape) +static void CreateStarShapedPolygon(const int radius, std::span harmonics, std::span shape) { float theta = 0; float step = (M_PI * 2) / std::size(shape); @@ -221,7 +221,7 @@ struct BlobHarmonic { * @param radius The maximum radius of the blob. May be smaller, but will not be larger. * @param[out] shape Shape to fill with polygon points. */ - static void CreateRandomStarShapedPolygon(int radius, std::span shape) +static void CreateRandomStarShapedPolygon(int radius, std::span shape) { /* Valid values for the phase of blob harmonics are between 0 and Tau. we can get a value in the correct range * from Random() by dividing the maximum possible value by the desired maximum, and then dividing the random @@ -268,7 +268,7 @@ static bool IsPointInTriangle(const int x, const int y, const Point &v1, const P * @param shape The shape to check against. * @returns true if the given coordinates lie within the shape.star shaped polygon. */ - static bool IsPointInStarShapedPolygon(int x, int y, std::span shape) +static bool IsPointInStarShapedPolygon(int x, int y, std::span shape) { for (auto it = std::begin(shape); it != std::end(shape); /* nothing */) { const Point &v1 = *it;