Panda3D
 All Classes Functions Variables Enumerations
mathNumbers.I
1 // Filename: mathNumbers.I
2 // Created by: drose (22Jan05)
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 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: MathNumbers::cpi
18 // Access: Public, Static
19 // Description: Returns pi as a single-precision or double-precision
20 // number, according to the type of the parameter.
21 ////////////////////////////////////////////////////////////////////
22 INLINE float MathNumbers::
23 cpi(float) {
24  return pi_f;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: MathNumbers::cln2
29 // Access: Public, Static
30 // Description: Returns ln(2) as a single-precision or double-precision
31 // number, according to the type of the parameter.
32 ////////////////////////////////////////////////////////////////////
33 INLINE float MathNumbers::
34 cln2(float) {
35  return ln2_f;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: MathNumbers::cpi
40 // Access: Public, Static
41 // Description: Returns pi as a single-precision or double-precision
42 // number, according to the type of the parameter.
43 ////////////////////////////////////////////////////////////////////
44 INLINE double MathNumbers::
45 cpi(double) {
46  return pi;
47 }
48 
49 ////////////////////////////////////////////////////////////////////
50 // Function: MathNumbers::cln2
51 // Access: Public, Static
52 // Description: Returns ln(2) as a single-precision or double-precision
53 // number, according to the type of the parameter.
54 ////////////////////////////////////////////////////////////////////
55 INLINE double MathNumbers::
56 cln2(double) {
57  return ln2;
58 }
static float cpi(float)
Returns pi as a single-precision or double-precision number, according to the type of the parameter...
Definition: mathNumbers.I:23
static float cln2(float)
Returns ln(2) as a single-precision or double-precision number, according to the type of the paramete...
Definition: mathNumbers.I:34