Panda3D
mathNumbers.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file mathNumbers.h
10  * @author mike
11  * @date 1999-01-23
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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.