[ADD] convert number to digits

This commit is contained in:
Sem van der Hoeven
2021-06-11 12:30:47 +02:00
parent 504b97b320
commit 692bb76164
4 changed files with 29 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include "../entities/camera.h"
#include <glm/gtc/matrix_transform.hpp>
#include <vector>
namespace toolbox
{
@@ -78,4 +79,13 @@ namespace toolbox
* @return: The random number
*/
int Random(const int min, const int max);
/**
* @brief gets the separate digits from the number.
*
* @param number the number to get the digits from
* @param result_vector the vector to hold the individual digits.
*/
void GetDigitsFromNumber(int number, std::vector<int>& result_vector);
}