Public Member Functions | Public Attributes | List of all members
Edge Class Reference

Interface between two cells. More...

#include <Edge.hpp>

Public Member Functions

 Edge (Vector2D const &p1, Vector2D const &p2, int neighbor1, int neighbor2)
 Class constructor. More...
 
Edgeoperator= (const Edge &other)
 copy operator More...
 
 Edge (Edge const &other)
 Copy constructor. More...
 
double GetLength (void) const
 Returns the length of the edge. More...
 

Public Attributes

std::pair< Vector2D, Vector2Dvertices
 Points at the ends of the edge.
 
std::pair< int, int > neighbors
 Neighboring cells.
 

Detailed Description

Interface between two cells.

Definition at line 13 of file Edge.hpp.

Constructor & Destructor Documentation

◆ Edge() [1/2]

Edge::Edge ( Vector2D const &  p1,
Vector2D const &  p2,
int  neighbor1,
int  neighbor2 
)

Class constructor.

Parameters
p1Position of first vertex
p2Position of second vertex
neighbor1Index of first neighbor cell
neighbor2Index of second neighbor cell

Definition at line 22 of file Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Edge() [2/2]

Edge::Edge ( Edge const &  other)

Copy constructor.

Parameters
otherSource edge

Definition at line 11 of file Edge.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ GetLength()

double Edge::GetLength ( void  ) const

Returns the length of the edge.

Returns
Length

Definition at line 26 of file Edge.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

Edge & Edge::operator= ( const Edge other)

copy operator

Parameters
otherSource from which to copy data
Returns
Reference to self

Definition at line 15 of file Edge.cpp.


The documentation for this class was generated from the following files: