| 188 | } |
| 189 | |
| 190 | int GeneralUtils::CountDigitsInNumber(int number) |
| 191 | { |
| 192 | int digits = 0; |
| 193 | |
| 194 | while (number) |
| 195 | { |
| 196 | number /= 10; |
| 197 | digits++; |
| 198 | } |
| 199 | |
| 200 | return digits; |
| 201 | } |
| 202 | |
| 203 | // Calculates a new coordinates based on current & target coordinates within specified distance (can be negative to switch the direction) in leptons. |
| 204 | CoordStruct GeneralUtils::CalculateCoordsFromDistance(CoordStruct currentCoords, CoordStruct targetCoords, int distance) |
nothing calls this directly
no outgoing calls
no test coverage detected