4 #include "blub/core/list.hpp"
5 #include "blub/core/globals.hpp"
15 triangle(blub::uint32 a, blub::uint32 b, blub::uint32 c)
22 bool contains(blub::uint32 _ind)
24 return ind[0] == _ind || ind[1] == _ind || ind[2] == _ind;
29 return ind[0] != ind[1] && ind[0] != ind[2] && ind[1] != ind[2];
32 bool operator == (
const triangle & other)
const
35 for (uint16 ind1 = 0; ind1 < 3; ++ind1)
36 otherVec.push_back(other.ind[ind1]);
37 for (uint16 ind1 = 0; ind1 < 3; ++ind1)
39 int32 index = otherVec.indexOf(ind[ind1]);
43 otherVec.removeAt(index);
47 triangle operator + (
const int32 & other)
const
49 return triangle(ind[0]+other, ind[1]+other, ind[2]+other);
57 #endif // TRIANGLE_HPP
Definition: triangle.hpp:10
Definition: deadlineTimer.hpp:10