#include <triangle.h>
Public Member Functions | |
void | applyTransform (const transf &t) |
double | area () const |
position | centroid () const |
vec3 | normal () const |
Triangle (const Triangle &t) | |
Triangle (const position &nv1, const position &nv2, const position &nv3) | |
Public Attributes | |
position | v1 |
position | v2 |
position | v3 |
Friends | |
bool | triangleIntersection (const Triangle &t1, const Triangle &t2) |
Very simple class, only holds 3 public vertices as positions
Definition at line 34 of file triangle.h.
Definition at line 38 of file triangle.h.
Triangle::Triangle | ( | const Triangle & | t | ) | [inline] |
Definition at line 39 of file triangle.h.
void Triangle::applyTransform | ( | const transf & | t | ) | [inline] |
Definition at line 83 of file triangle.h.
double Triangle::area | ( | ) | const [inline] |
Definition at line 65 of file triangle.h.
position Triangle::centroid | ( | ) | const [inline] |
Definition at line 77 of file triangle.h.
vec3 Triangle::normal | ( | ) | const [inline] |
Definition at line 71 of file triangle.h.
Definition at line 70 of file triangle_inl.h.
Definition at line 36 of file triangle.h.
Definition at line 36 of file triangle.h.
Definition at line 36 of file triangle.h.