Panda3D

mathNumbers.I

00001 // Filename: mathNumbers.I
00002 // Created by:  drose (22Jan05)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: MathNumbers::cpi
00018 //       Access: Public, Static
00019 //  Description: Returns pi as a single-precision or double-precision
00020 //               number, according to the type of the parameter.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE float MathNumbers::
00023 cpi(float) {
00024   return pi_f;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: MathNumbers::cln2
00029 //       Access: Public, Static
00030 //  Description: Returns ln(2) as a single-precision or double-precision
00031 //               number, according to the type of the parameter.
00032 ////////////////////////////////////////////////////////////////////
00033 INLINE float MathNumbers::
00034 cln2(float) {
00035   return ln2_f;
00036 }
00037 
00038 ////////////////////////////////////////////////////////////////////
00039 //     Function: MathNumbers::cpi
00040 //       Access: Public, Static
00041 //  Description: Returns pi as a single-precision or double-precision
00042 //               number, according to the type of the parameter.
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE double MathNumbers::
00045 cpi(double) {
00046   return pi;
00047 }
00048 
00049 ////////////////////////////////////////////////////////////////////
00050 //     Function: MathNumbers::cln2
00051 //       Access: Public, Static
00052 //  Description: Returns ln(2) as a single-precision or double-precision
00053 //               number, according to the type of the parameter.
00054 ////////////////////////////////////////////////////////////////////
00055 INLINE double MathNumbers::
00056 cln2(double) {
00057   return ln2;
00058 }
 All Classes Functions Variables Enumerations