Skip to content
Snippets Groups Projects
Commit ebe1bda4 authored by Andrew Heather's avatar Andrew Heather
Browse files

cosmetics

parent ef350447
No related branches found
No related tags found
No related merge requests found
...@@ -58,17 +58,21 @@ namespace mathematical ...@@ -58,17 +58,21 @@ namespace mathematical
} // End namespace mathematical } // End namespace mathematical
} // End namespace constant } // End namespace constant
//- Conversion from degrees to radians // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
inline scalar degToRad(const scalar& deg)
{ //- Conversion from degrees to radians
return (deg * constant::mathematical::pi/180.0); inline scalar degToRad(const scalar& deg)
} {
return (deg*constant::mathematical::pi/180.0);
//- Conversion from radians to degrees }
inline scalar radToDeg(const scalar& rad)
{ //- Conversion from radians to degrees
return (rad * 180.0/constant::mathematical::pi); inline scalar radToDeg(const scalar& rad)
} {
return (rad*180.0/constant::mathematical::pi);
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam } // End namespace Foam
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment