#include <mathutils.h>
Static Public Member Functions | |
template<typename T > | |
static T | roundUp (T a, T k) |
template<typename T > | |
static T | gcd (T a, T b) |
A collection of useful math functions
static T utils::MathUtils::gcd | ( | T | a, |
T | b | ||
) | [inline, static] |
Computes the greatest common divisor of a and b
a | |
b |
static T utils::MathUtils::roundUp | ( | T | a, |
T | k | ||
) | [inline, static] |
Finds the smallest value x >= a such that x % k == 0
a and k should be of kind "int".