#include <Triangle.h>
Public Methods | |
| Triangle (Vertex *v0, Vertex *v1, Vertex *v2) | |
| Constructor. More... | |
| Vertex * | v0 () |
| The first Vertex. | |
| Vertex * | v1 () |
| The second Vertex. | |
| Vertex * | v2 () |
| The third Vertex. | |
| GLvoid | setColor (Color *c) |
| Set the Color of the Vertex. | |
| Color * | getColor () |
| Get the Color of the Vertex. | |
| GLvoid | setNormal (Normal *n) |
| Set the Normal to the Vertex explicitly. | |
| Normal * | getNormal () |
| GLvoid | setCenter (Point *c) |
| Point * | getCenter () |
| bool | replaced () |
| bool | replace (Vertex *v1, Vertex *v2) |
| std::string | toString () |
| bool | contains (Vertex *v1) |
|
||||||||||||||||
|
Constructor. The Vertices must be speified in clockwise order when looking at the front of the Triangle |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001