22 lines
447 B
C++
22 lines
447 B
C++
/*
|
|
* mathutil.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 16/04/09.
|
|
*
|
|
*/
|
|
|
|
#include <cmath>
|
|
#include <SFML/System/Time.hpp>
|
|
|
|
using std::abs;
|
|
short get_ran (short times,short min,short max);
|
|
short s_pow(short x,short y);
|
|
short s_sqrt(short val);
|
|
short max(short a,short b);
|
|
short min(short a,short b);
|
|
short minmax(short min,short max,short k);
|
|
short move_to_zero(short val);
|
|
short gcd(short a, short b);
|
|
sf::Time time_in_ticks(int ticks);
|