Panda3D
mathNumbers.h
1 // Filename: mathNumbers.h
2 // Created by: mike (23Jan99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 #ifndef MATHNUMBERS_H
15 #define MATHNUMBERS_H
16 
17 #include "pandabase.h"
18 #include "numeric_types.h"
19 
20 class EXPCL_PANDA_LINMATH MathNumbers {
21 PUBLISHED:
22  static const double pi_d;
23  static const double ln2_d;
24  static const double rad_2_deg_d;
25  static const double deg_2_rad_d;
26 
27  static const float pi_f;
28  static const float ln2_f;
29  static const float rad_2_deg_f;
30  static const float deg_2_rad_f;
31 
32  static const PN_stdfloat pi;
33  static const PN_stdfloat ln2;
34  static const PN_stdfloat rad_2_deg;
35  static const PN_stdfloat deg_2_rad;
36 
37 public:
38  INLINE static float cpi(float);
39  INLINE static float cln2(float);
40 
41  INLINE static double cpi(double);
42  INLINE static double cln2(double);
43 };
44 
45 #include "mathNumbers.I"
46 
47 #endif