38 if (a[0] ==
b[0] && a[1] ==
b[1])
42 else if (a[0] ==
b[1] && a[1] ==
b[0])
108 || start() == a.
end()
109 || end() == a.
start()
124 if (start() == a.
start() || start() == a.
end())
128 else if (end() == a.
start() || end() == a.
end())
159 Swap(
operator[](0),
operator[](1));
165 return edge(end(), start());
171 return 0.5*(
p[start()] +
p[end()]);
177 return p[end()] -
p[start()];
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
void flip()
Flip the edge in-place.
bool connected(const edge &a) const
Return true if connected to given edge.
scalar mag(const pointField &) const
Return scalar magnitude.
edge reverseEdge() const
Return reverse edge.
label end() const
Return end vertex label.
static int compare(const edge &, const edge &)
Compare edges.
vector vec(const pointField &) const
Return the vector (end - start)
linePointRef line(const pointField &) const
Return edge line.
point centre(const pointField &) const
Return centre (centroid)
edge()
Null constructor for lists.
label otherVertex(const label a) const
Given one vertex, return the other.
label commonVertex(const edge &a) const
Return common vertex.
label start() const
Return start vertex label.
bool operator!=(const particle &, const particle &)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
line< point, const point & > linePointRef
Line using referred points.
dimensioned< scalar > mag(const dimensioned< Type > &)