C++ Utils  0.1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Static Public Member Functions
utils::MathUtils Class Reference

#include <mathutils.h>

List of all members.

Static Public Member Functions

template<typename T >
static T roundUp (T a, T k)
template<typename T >
static T gcd (T a, T b)

Detailed Description

A collection of useful math functions


Member Function Documentation

template<typename T >
static T utils::MathUtils::gcd ( a,
b 
) [inline, static]

Computes the greatest common divisor of a and b

Parameters:
a
b
Returns:
template<typename T >
static T utils::MathUtils::roundUp ( a,
k 
) [inline, static]

Finds the smallest value x >= a such that x % k == 0

a and k should be of kind "int".


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines