30 int neighbor1,
int neighbor2);
76 Vector2D &Intersection,
double eps=1e-8);
Geometrical calculations.
bool SegmentIntersection(Edge const &edge1, Edge const &edge2, Vector2D &Intersection, double eps=1e-8)
Calculates the intersection of two edges.
Vector2D Parallel(Edge const &edge)
Calculates a unit vector parallel to an edge.
Interface between two cells.
Edge & operator=(const Edge &other)
copy operator
std::pair< Vector2D, Vector2D > vertices
Points at the ends of the edge.
std::pair< int, int > neighbors
Neighboring cells.
double DistanceToEdge(Vector2D const &point, Edge const &edge)
Calculates the distance of a point to an edge.
Vector2D calc_centroid(const Edge &edge)
Calculates the centroid of an edge.
double GetLength(void) const
Returns the length of the edge.