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

added get/set component functionality

parent cc3248e3
Branches
Tags
No related merge requests found
......@@ -119,6 +119,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "pTraits.H"
#include "direction.H"
namespace Foam
{
......@@ -202,6 +203,16 @@ MAXMIN(long, int, long)
MAXMIN(long long, int, long long)
MAXMIN(long long, long long, int)
inline label& setComponent(label& l, const direction)
{
return l;
}
inline label component(const label l, const direction)
{
return l;
}
inline label mag(const label l)
{
return ::abs(l);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment