API Documentation
MathConstants.h
1 // MathConstants.h
3 //
5 
6 namespace nkMaths
7 {
12  {
13  public :
14 
15  static constexpr float PI = 3.1415926535897932384626433832795f ;
16 
17  static constexpr float PI_SQRT = 1.7724538509055160272981674833411f ;
18 
19  static constexpr float PI_2 = 2.f * PI ;
20  static constexpr float PI_4 = 4.f * PI ;
21 
22  static constexpr float PI_OVER_2 = 0.5f * PI ;
23  static constexpr float PI_OVER_4 = 0.25f * PI ;
24  } ;
25 }
nkMaths::MathConstants
Availables constants.
Definition: MathConstants.h:12
nkMaths::MathConstants::PI_2
static constexpr float PI_2
Value for PI * 2.
Definition: MathConstants.h:19
nkMaths
Encompasses all API of component NilkinsMaths.
Definition: IntVector.h:7
nkMaths::MathConstants::PI_OVER_4
static constexpr float PI_OVER_4
Value for PI / 4.
Definition: MathConstants.h:23
nkMaths::MathConstants::PI
static constexpr float PI
Value for PI.
Definition: MathConstants.h:15
nkMaths::MathConstants::PI_4
static constexpr float PI_4
Value for PI * 4.
Definition: MathConstants.h:20
nkMaths::MathConstants::PI_OVER_2
static constexpr float PI_OVER_2
Value for PI / 2.
Definition: MathConstants.h:22
nkMaths::MathConstants::PI_SQRT
static constexpr float PI_SQRT
Value for the square root of PI.
Definition: MathConstants.h:17