open_toontown_panda3d/panda/src/linmath/deg_2_rad.I

30 lines
833 B
Plaintext

// Filename: deg_2_rad.I
// Created by: drose (14Dec11)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should have received a copy of this license along
// with this source code in a file named "LICENSE."
//
////////////////////////////////////////////////////////////////////
INLINE_LINMATH double deg_2_rad(double f) {
return f * MathNumbers::deg_2_rad_d;
}
INLINE_LINMATH double rad_2_deg(double f) {
return f * MathNumbers::rad_2_deg_d;
}
INLINE_LINMATH float deg_2_rad(float f) {
return f * MathNumbers::deg_2_rad_f;
}
INLINE_LINMATH float rad_2_deg(float f) {
return f * MathNumbers::rad_2_deg_f;
}