Go to the documentation of this file.
35 if (scalarList::empty())
39 else if (
equal(
p, first()))
47 else if (
p < first() ||
p > last())
65 if (scalarList::empty())
75 return scalarList::size()-1;
77 else if (
p < first() ||
p > last())
87 for (
const scalar& val : *
this)
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
label findCell(const scalar p) const
Find the cell index enclosing this location.
label findLower(const ListType &input, const T &val, const label start, const ComparePredicate &comp)
label findIndex(const scalar p, const scalar tol) const
Find the grid index, within the given tolerance.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Various functions to operate on Lists.
label nCells() const
The number of cells in this direction.
bool equal(const T &s1, const T &s2)
Compare two values for equality.