Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cmath.hpp « std - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9198edd96085a58e1c58e89fb518432d79cae851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include "common_defines.hpp"

#ifdef new
#undef new
#endif

#include <cmath>

#ifdef DEBUG_NEW
#define new DEBUG_NEW
#endif

namespace math
{
  static const double pi = 3.14159265358979323846;

  template <class T> T sqr(T t) { return (t*t); }
}