Panda3D
Loading...
Searching...
No Matches
mathNumbers.cxx
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.cxx
10 * @author mike
11 * @date 1999-09-24
12 */
13
14#include "mathNumbers.h"
15#include <math.h>
16
17const double MathNumbers::pi_d = 4.0 * atan(1.0);
18const double MathNumbers::ln2_d = log(2.0);
19const double MathNumbers::rad_2_deg_d = 180.0 / MathNumbers::pi_d;
20const double MathNumbers::deg_2_rad_d = MathNumbers::pi_d / 180.0;
21
22const float MathNumbers::pi_f = 4.0 * atan(1.0);
23const float MathNumbers::ln2_f = log(2.0);
24const float MathNumbers::rad_2_deg_f = 180.0 / MathNumbers::pi_d;
25const float MathNumbers::deg_2_rad_f = MathNumbers::pi_d / 180.0;
26
27const PN_stdfloat MathNumbers::pi = 4.0 * atan(1.0);
28const PN_stdfloat MathNumbers::ln2 = log(2.0);
29const PN_stdfloat MathNumbers::rad_2_deg = 180.0 / MathNumbers::pi_d;
30const PN_stdfloat MathNumbers::deg_2_rad = MathNumbers::pi_d / 180.0;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.