![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
A reference to an edge (two points) More...
#include <gf/Triangulation.h>
Public Member Functions | |
EdgeRef (const T &p0, const T &p1) | |
Constructor with two points. More... | |
const T & | operator[] (std::size_t index) const |
Access the points of the edge. More... | |
Protected Attributes | |
const T * | m_points [2] |
A reference to an edge (two points)
|
inline |
Constructor with two points.
The address of the points must not change while the edge is alive.
p0 | The first point |
p1 | The second point |
|
inline |
Access the points of the edge.
index | The index of the point ( \( 0 \) or \( 1 \)) |
|
protected |