#include <math.h>
Public Member Functions | |
Vector | ComputeNormal () |
assumes CCW ordering of vertices | |
const Vector & | operator[] (int i) const |
Vector & | operator[] (int i) |
TRIANGLE () | |
TRIANGLE (const Vector &v1, const Vector &v2, const Vector &v3) | |
~TRIANGLE () | |
Public Attributes | |
Vector | v1 |
Vector | v2 |
Vector | v3 |
the vertices of the triangle |
TRIANGLE::TRIANGLE | ( | ) | [inline] |
TRIANGLE::TRIANGLE | ( | const Vector & | v1, |
const Vector & | v2, | ||
const Vector & | v3 | ||
) | [inline] |
TRIANGLE::~TRIANGLE | ( | ) | [inline] |
Vector TRIANGLE::ComputeNormal | ( | ) | [inline] |