From ebe1bda49156991671d1b2f8aebd0939f59b2b63 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 19 Oct 2009 14:56:02 +0100 Subject: [PATCH] cosmetics --- .../constants/math/mathematicalConstants.H | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) 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