Panda3D
 All Classes Functions Variables Enumerations
deg_2_rad.I
1 // Filename: deg_2_rad.I
2 // Created by: drose (14Dec11)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 INLINE_LINMATH double deg_2_rad(double f) {
16  return f * MathNumbers::deg_2_rad_d;
17 }
18 
19 INLINE_LINMATH double rad_2_deg(double f) {
20  return f * MathNumbers::rad_2_deg_d;
21 }
22 
23 INLINE_LINMATH float deg_2_rad(float f) {
24  return f * MathNumbers::deg_2_rad_f;
25 }
26 
27 INLINE_LINMATH float rad_2_deg(float f) {
28  return f * MathNumbers::rad_2_deg_f;
29 }