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 
00019 class EXPCL_PANDA_LINMATH MathNumbers {
00020 PUBLISHED:
00021   static const float pi_f;
00022   static const float rad_2_deg_f;
00023   static const float deg_2_rad_f;
00024   static const float ln2_f;
00025 
00026   static const double pi;
00027   static const double ln2;
00028   static const double rad_2_deg;
00029   static const double deg_2_rad;
00030 
00031 public:
00032   INLINE static float cpi(float);
00033   INLINE static float cln2(float);
00034 
00035   INLINE static double cpi(double);
00036   INLINE static double cln2(double);
00037 };
00038 
00039 #include "mathNumbers.I"
00040 
00041 #endif
 All Classes Functions Variables Enumerations