|
SimpleFastOpenAtomicVisualiser
|
A 3D triangle. More...
#include <triangle.h>

Public Member Functions | |
| Triangle () | |
| Construct a new empty Triangle. | |
| Triangle (vec3< T > v1, vec3< T > v2, vec3< T > v3) | |
| Construct a new Triangle with the given vertices. | |
| std::array< vec3< T >, 3 > | getVertices () const |
| Get the Vertices of the Triangle. | |
| void | setVertices (std::array< vec3< T >, 3 > v) |
| Set the Vertices of the Triangle. | |
| vec3< T > | normal () const |
| Calculate the Triangle's normal vector. | |
Public Attributes | |
| vec3< T > | x |
| vec3< T > | y |
| vec3< T > | z |
|
inline |
Construct a new empty Triangle.
Construct a new Triangle with the given vertices.
| v1 | first vertex. |
| v2 | second vertex. |
| v3 | third vertex. |
Calculate the Triangle's normal vector.
Set the Vertices of the Triangle.
| v | new vertices. |