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