Files Classes Functions Hierarchy
00001 #ifndef VIRTUALTRIANGLE_H 00002 #define VIRTUALTRIANGLE_H 00003 00004 #include <typedefs.h> 00005 00006 // Brief: A virtual triangle with local indexes to another data 00007 // structure. 00008 // 00009 class virtualtriangle 00010 { 00011 00012 public: 00013 00014 // Local indexes to points. Can have values of {0,1,2} only. 00015 uint v[3]; 00016 00017 // Constructor 00018 virtualtriangle(); 00019 00020 // Each of the triangles verticies refers to a local point. 00021 void set(uintc a, uintc b, uintc c); 00022 00023 // {0,1,2} sets the triangles orientation. 00024 void set(uintc base); 00025 00026 // Rotate the triangle clockwise. 00027 void clockwise(); 00028 00029 // Rotate the triangle anticlockwise. 00030 void anticlockwise(); 00031 00032 // Has v[] with {0,1,2} in any order. 00033 bool const validstate() const; 00034 }; 00035 00036 00037 00038 #endif 00039 00040
1.5.8