38 if (a[0] == b[0] && a[1] == b[1])
42 else if (a[0] == b[1] && a[1] == b[0])
159 Swap(
operator[](0),
operator[](1));
edge reverseEdge() const
Return reverse edge.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static int compare(const edge &, const edge &)
Compare edges.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
label otherVertex(const label a) const
Given one vertex, return the other.
label commonVertex(const edge &a) const
Return common vertex.
point centre(const pointField &) const
Return centre (centroid)
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
linePointRef line(const pointField &) const
Return edge line.
line< point, const point & > linePointRef
Line using referred points.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
label & operator[](const label)
Return element of FixedList.
scalar mag(const pointField &) const
Return scalar magnitude.
bool connected(const edge &a) const
Return true if connected to given edge.
vector vec(const pointField &) const
Return the vector (end - start)
label end() const
Return end vertex label.
edge()
Null constructor for lists.
dimensioned< scalar > mag(const dimensioned< Type > &)
void flip()
Flip the edge in-place.
bool operator!=(const particle &, const particle &)
label start() const
Return start vertex label.