mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
unitConversion - don't pull in the entire constant::mathematical namespace
- also, minor doxygen fixup
This commit is contained in:
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM; if not, write to the Free Software Foundation,
|
along with OpenFOAM; if not, write to the Free Software Foundation,
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
Namespace
|
InNamespace
|
||||||
Foam
|
Foam
|
||||||
|
|
||||||
Description
|
Description
|
||||||
@ -35,8 +35,6 @@ Description
|
|||||||
|
|
||||||
#include "mathematicalConstants.H"
|
#include "mathematicalConstants.H"
|
||||||
|
|
||||||
using namespace Foam::constant::mathematical;
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
@ -47,13 +45,13 @@ namespace Foam
|
|||||||
//- Conversion from degrees to radians
|
//- Conversion from degrees to radians
|
||||||
inline scalar degToRad(const scalar& deg)
|
inline scalar degToRad(const scalar& deg)
|
||||||
{
|
{
|
||||||
return (deg*pi/180.0);
|
return (deg * constant::mathematical::pi/180.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Conversion from radians to degrees
|
//- Conversion from radians to degrees
|
||||||
inline scalar radToDeg(const scalar& rad)
|
inline scalar radToDeg(const scalar& rad)
|
||||||
{
|
{
|
||||||
return (rad*180.0/pi);
|
return (rad * 180.0/constant::mathematical::pi);
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user