Panda3D
mathNumbers.I
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.I
10  * @author drose
11  * @date 2005-01-22
12  */
13 
14 /**
15  * Returns pi as a single-precision or double-precision number, according to
16  * the type of the parameter.
17  */
18 INLINE float MathNumbers::
19 cpi(float) {
20  return pi_f;
21 }
22 
23 /**
24  * Returns ln(2) as a single-precision or double-precision number, according
25  * to the type of the parameter.
26  */
27 INLINE float MathNumbers::
28 cln2(float) {
29  return ln2_f;
30 }
31 
32 /**
33  * Returns pi as a single-precision or double-precision number, according to
34  * the type of the parameter.
35  */
36 INLINE double MathNumbers::
37 cpi(double) {
38  return pi;
39 }
40 
41 /**
42  * Returns ln(2) as a single-precision or double-precision number, according
43  * to the type of the parameter.
44  */
45 INLINE double MathNumbers::
46 cln2(double) {
47  return ln2;
48 }
static float cpi(float)
Returns pi as a single-precision or double-precision number, according to the type of the parameter.
Definition: mathNumbers.I:19
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:28