mathNumbers.cxx 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Filename: mathNumbers.cxx
  2. // Created by: mike (24Sep99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #include "mathNumbers.h"
  19. #include <math.h>
  20. const double MathNumbers::pi = 4.0 * atan(1.0);
  21. const double MathNumbers::ln2 = log(2.0);
  22. const double MathNumbers::rad_2_deg = 180.0 / MathNumbers::pi;
  23. const double MathNumbers::deg_2_rad = MathNumbers::pi / 180.0;
  24. const float MathNumbers::pi_f = 4.0 * atan(1.0);
  25. const float MathNumbers::ln2_f = log(2.0);
  26. const float MathNumbers::rad_2_deg_f = 180.0 / MathNumbers::pi;
  27. const float MathNumbers::deg_2_rad_f = MathNumbers::pi / 180.0;