Panda3D
|
00001 // Filename: deg_2_rad.h 00002 // Created by: drose (29Sep99) 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 #ifndef DEG_2_RAD_H 00016 #define DEG_2_RAD_H 00017 00018 #include "pandabase.h" 00019 00020 #include "mathNumbers.h" 00021 00022 BEGIN_PUBLISH 00023 INLINE_LINMATH double deg_2_rad( double f ) { return f * MathNumbers::deg_2_rad; } 00024 INLINE_LINMATH double rad_2_deg( double f ) { return f * MathNumbers::rad_2_deg; } 00025 00026 INLINE_LINMATH float deg_2_rad( float f ) { return f * MathNumbers::deg_2_rad_f; } 00027 INLINE_LINMATH float rad_2_deg( float f ) { return f * MathNumbers::rad_2_deg_f; } 00028 END_PUBLISH 00029 00030 #endif 00031