| 173 | } |
| 174 | |
| 175 | int GetHash(const std::string& string) |
| 176 | { |
| 177 | if (string.empty()) |
| 178 | return 0; |
| 179 | |
| 180 | unsigned int hash = 2166136261u; |
| 181 | for (char c : string) |
| 182 | { |
| 183 | hash ^= static_cast<unsigned char>(c); |
| 184 | hash *= 16777619u; |
| 185 | } |
| 186 | |
| 187 | return static_cast<int>(hash); |
| 188 | } |
| 189 | |
| 190 | Vector2 GetAspectCorrect2DPosition(const Vector2& pos) |
| 191 | { |
no test coverage detected