#define PRECICE_ASSERT(...)
Linear edge of a mesh, defined by two Vertex objects.
double getEnclosingRadius() const
Returns the radius of the enclosing circle of the edge.
bool operator!=(const Edge &other) const
Not equal, implemented in terms of equal.
double getLength() const
Returns the length of the edge.
int getDimensions() const
Returns number of spatial dimensions (2 or 3) the edge is embedded to.
static constexpr int vertexCount
Amount of vertices.
Edge(Vertex &vertexOne, Vertex &vertexTwo)
Constructor.
const Eigen::VectorXd getCenter() const
Returns the center of the edge.
bool operator==(const Edge &other) const
Compares two Edges for equality.
Vertex & vertex(int i)
Returns the edge's vertex with index 0 or 1.
std::array< Vertex *, 2 > _vertices
Pointers to Vertex objects defining the edge, ordered by Vertex::getID().
bool operator<(const Edge &other) const
Weak ordering based on vertex ids.
bool connectedTo(const Edge &other) const
Checks whether both edges share a vertex.
std::ostream & operator<<(std::ostream &os, const BoundingBox &bb)
Main namespace of the precice library.