Panda3D
|
00001 // Filename: deg_2_rad.I 00002 // Created by: drose (14Dec11) 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 INLINE_LINMATH double deg_2_rad(double f) { 00016 return f * MathNumbers::deg_2_rad_d; 00017 } 00018 00019 INLINE_LINMATH double rad_2_deg(double f) { 00020 return f * MathNumbers::rad_2_deg_d; 00021 } 00022 00023 INLINE_LINMATH float deg_2_rad(float f) { 00024 return f * MathNumbers::deg_2_rad_f; 00025 } 00026 00027 INLINE_LINMATH float rad_2_deg(float f) { 00028 return f * MathNumbers::rad_2_deg_f; 00029 }