Leonetienne/Eule
Homemade math library, mainly targetted towards computer graphics
Constants.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Pretty sure the compiler will optimize these calculations out...
4 
6 static constexpr double PI = 3.14159265358979323846264338327950288419716939937510;
7 
9 static constexpr double HALF_PI = 1.57079632679489661923132169163975144209858469968755;
10 
12 static constexpr double Deg2Rad = 0.0174532925199432957692369076848861271344287188854172222222222222;
13 
15 static constexpr double Rad2Deg = 57.295779513082320876798154814105170332405472466564427711013084788;
PI
static constexpr double PI
Pi up to 50 decimal places.
Definition: Constants.h:6
Deg2Rad
static constexpr double Deg2Rad
Factor to convert degrees to radians.
Definition: Constants.h:12
Rad2Deg
static constexpr double Rad2Deg
Factor to convert radians to degrees.
Definition: Constants.h:15
HALF_PI
static constexpr double HALF_PI
Pi divided by two.
Definition: Constants.h:9