YAPOG  0.0.1
Yet Another Pokemon Online Game
MathHelper.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_MATHHELPER_HPP
2 # define YAPOG_MATHHELPER_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 
6 namespace yap
7 {
9  {
11 
12  public:
13 
14  template <typename T>
15  static T Max (const T& left, const T& right);
16 
17  template <typename T>
18  static T Min (const T& left, const T& right);
19 
20  template <typename T>
21  static T Floor (const T& number);
22 
23  template <typename T>
24  static T Clamp (const T& value, const T& min, const T& max);
25 
26  template <typename T1, typename T2>
27  static int Pow (const T1& number, const T2& pow);
28 
29  template <typename T1, typename T2>
30  static T1 Sqrt (const T1& number, const T2& pow);
31 
32  template <typename T>
33  static T Abs (const T& value);
34 
35  template <typename T>
36  static T Cos (const T& angle);
37 
38  template <typename T>
39  static T Sin (const T& angle);
40 
41  private:
42 
43  MathHelper ();
44  ~MathHelper ();
45  };
46 } // namespace yap
47 
49 
50 #endif // YAPOG_MATHHELPER_HPP