nCine 2025.06.r503-ff15d8d
A cross-platform 2D game engine
Loading...
Searching...
No Matches
common_constants.h
1#ifndef NCINE_COMMON_CONSTANTS
2#define NCINE_COMMON_CONSTANTS
3
4namespace ncine {
5
6const double Pi = 3.141592653589793;
7const float fPi = 3.1415927f;
8const double DegToRad = Pi / 180.0;
9const float fDegToRad = fPi / 180.0f;
10const double RadToDeg = 180.0 / Pi;
11const float fRadToDeg = 180.0f / fPi;
12
13}
14
15#endif