X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fmath%2Fpi.h;h=dde3f48b2ca0d8dfaa0794b985601b98cb3e1719;hb=e4287c28bb2dafedc81c66e63951d947cfbeb225;hp=9cc74c1bd3fee4e377863fa246ac327e96da3b63;hpb=203343b01a7ad87cb3d136689c9936ff5bc23c01;p=xonotic%2Fnetradiant.git diff --git a/libs/math/pi.h b/libs/math/pi.h index 9cc74c1b..dde3f48b 100644 --- a/libs/math/pi.h +++ b/libs/math/pi.h @@ -1,25 +1,25 @@ /* -Copyright (C) 2001-2006, William Joseph. -All Rights Reserved. + Copyright (C) 2001-2006, William Joseph. + All Rights Reserved. -This file is part of GtkRadiant. + This file is part of GtkRadiant. -GtkRadiant is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + GtkRadiant is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -GtkRadiant is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + GtkRadiant is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GtkRadiant; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ + You should have received a copy of the GNU General Public License + along with GtkRadiant; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -#if !defined(INCLUDED_MATH_PI_H) +#if !defined( INCLUDED_MATH_PI_H ) #define INCLUDED_MATH_PI_H /// \file @@ -33,13 +33,11 @@ const double c_inv_2pi = 1 / c_2pi; const double c_DEG2RADMULT = c_pi / 180.0; const double c_RAD2DEGMULT = 180.0 / c_pi; -inline double radians_to_degrees(double radians) -{ - return radians * c_RAD2DEGMULT; +inline double radians_to_degrees( double radians ){ + return radians * c_RAD2DEGMULT; } -inline double degrees_to_radians(double degrees) -{ - return degrees * c_DEG2RADMULT; +inline double degrees_to_radians( double degrees ){ + return degrees * c_DEG2RADMULT; } #endif