Edge between cells.
More...
#include <vector>
#include "geometry.hpp"
Go to the source code of this file.
Edge between cells.
- Author
- Elad Steinberg
Definition in file Edge.hpp.
◆ calc_centroid()
Calculates the centroid of an edge.
- Parameters
-
- Returns
- Centroid
Definition at line 88 of file Edge.cpp.
◆ DistanceToEdge()
double DistanceToEdge |
( |
Vector2D const & |
point, |
|
|
Edge const & |
edge |
|
) |
| |
Calculates the distance of a point to an edge.
- Parameters
-
point | The point |
edge | The edge |
- Returns
- The minimum distance between the point and the edge
Definition at line 31 of file Edge.cpp.
◆ Parallel()
Calculates a unit vector parallel to an edge.
- Parameters
-
- Returns
- Unit vector parallel to the edge
Definition at line 83 of file Edge.cpp.
◆ SegmentIntersection()
bool SegmentIntersection |
( |
Edge const & |
edge1, |
|
|
Edge const & |
edge2, |
|
|
Vector2D & |
Intersection, |
|
|
double |
eps = 1e-8 |
|
) |
| |
Calculates the intersection of two edges.
- Parameters
-
edge1 | The first edge |
edge2 | The second edge |
Intersection | Gets the value of the intersection point |
eps | The relative tolerance in units of the smaller edge |
- Returns
- true if the intersection is on the edges and false if it is outside them
Definition at line 45 of file Edge.cpp.