Panda3D

mathNumbers.h

00001 // Filename: mathNumbers.h
00002 // Created by:  mike (23Jan99)
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 #ifndef MATHNUMBERS_H
00015 #define MATHNUMBERS_H
00016 
00017 #include "pandabase.h"
00018 #include "numeric_types.h"
00019 
00020 class EXPCL_PANDA_LINMATH MathNumbers {
00021 PUBLISHED:
00022   static const double pi_d;
00023   static const double ln2_d;
00024   static const double rad_2_deg_d;
00025   static const double deg_2_rad_d;
00026 
00027   static const float pi_f;
00028   static const float ln2_f;
00029   static const float rad_2_deg_f;
00030   static const float deg_2_rad_f;
00031 
00032   static const PN_stdfloat pi;
00033   static const PN_stdfloat ln2;
00034   static const PN_stdfloat rad_2_deg;
00035   static const PN_stdfloat deg_2_rad;
00036 
00037 public:
00038   INLINE static float cpi(float);
00039   INLINE static float cln2(float);
00040 
00041   INLINE static double cpi(double);
00042   INLINE static double cln2(double);
00043 };
00044 
00045 #include "mathNumbers.I"
00046 
00047 #endif
 All Classes Functions Variables Enumerations