Group Utility units into subsystem folders and require OFFSET provenance
Move Lexicon*, Text (TextTokens, TextEscapes, Base64), Math/RadialGrid, Hash (MD5, XxHash32) and Cipher (Rijndael, XorBytes) into Source/Utility subfolders; update includes, guards, compile.json and CMakeLists.txt. Backfill // OFFSET: above every standalone // FUNCTION: block (89 IDs, addresses from the symbol database) and make it mandatory in CODING_RULES.md and AGENTS.md. Remove the MatchLexicon cast chain.
This commit is contained in:
parent
caea0f2937
commit
bf6a44c117
58 changed files with 161 additions and 70 deletions
|
|
@ -1,18 +0,0 @@
|
|||
#include "Utility/RadialGrid.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
// FUNCTION: fn_18251
|
||||
std::vector<RadialGridPoint> GenerateRadialGrid(const RadialGridPoint& center, int radius) {
|
||||
std::vector<RadialGridPoint> points;
|
||||
const std::uint32_t diameter = static_cast<std::uint32_t>(radius) * 2u + 1u;
|
||||
points.reserve(diameter * diameter);
|
||||
|
||||
for (int x = -radius; x <= radius; ++x) {
|
||||
for (int y = -radius; y <= radius; ++y) {
|
||||
points.push_back({static_cast<float>(x) + center.x, static_cast<float>(y) + center.y});
|
||||
}
|
||||
}
|
||||
|
||||
return points;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue