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