diff --git a/src/OpenFOAM/global/constants/math/mathematicalConstants.H b/src/OpenFOAM/global/constants/math/mathematicalConstants.H index 02ceea194c..64811272d8 100644 --- a/src/OpenFOAM/global/constants/math/mathematicalConstants.H +++ b/src/OpenFOAM/global/constants/math/mathematicalConstants.H @@ -58,17 +58,21 @@ namespace mathematical } // End namespace mathematical } // End namespace constant - //- Conversion from degrees to radians - inline scalar degToRad(const scalar& deg) - { - return (deg * constant::mathematical::pi/180.0); - } +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - //- Conversion from radians to degrees - inline scalar radToDeg(const scalar& rad) - { - return (rad * 180.0/constant::mathematical::pi); - } +//- Conversion from degrees to radians +inline scalar degToRad(const scalar& deg) +{ + return (deg*constant::mathematical::pi/180.0); +} + +//- Conversion from radians to degrees +inline scalar radToDeg(const scalar& rad) +{ + return (rad*180.0/constant::mathematical::pi); +} + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam