Go to the documentation of this file.
37 for(
int i = 0; i < 3; ++i)
45 if(v0 < v1 and v0 < v2) {
46 v[0] = v0;
v[1] = v1;
v[2] = v2;
47 }
else if(v1 < v0 and v1 < v2) {
49 v[0] = v1;
v[1] = v2;
v[2] = v0;
51 v[0] = v2;
v[1] = v0;
v[2] = v1;
62 }
else if(v1 == t.
v[2]) {
79 return v[0] == other.
v[0] and
v[1] == other.
v[1] and
v[2] == other.
v[2];
85 for(
size_t i = 0; i < 3; ++i) {
97 for(
size_t i = 0; i < 3; ++i) {
100 if(
v[i] > other.
v[i])
128 template <>
struct hash<
mgx::Triangle>
133 return h(t.
v[0]) ^ h(t.
v[1]) ^ h(t.
v[2]);
vvGraph::vertex_t vertex
Type of a vertex.
Triangle(vertex v0, vertex v1, vertex v2)
size_t operator()(const mgx::Triangle &t) const
bool operator<=(const Triangle &other) const
static bool setTriangleData(vertex v1, vertex v2, vertex v3, Triangle &t, T &V1, T &V2, T &V3)
Distributed matrix library.
static bool setTriangleData(vertex v1, vertex v2, vertex v3, Triangle &t, T V[])
void swap(multiset_vector< Key, Compare, Allocator > &v1, multiset_vector< Key, Compare, Allocator > &v2)
Triangle flipTri(const Triangle &t)
std::pair< Triangle, SymmetricTensor > TriSymTensorPair
Element in TriSymTensorMap.
class Triangle Triangle.hpp <Triangle.hpp>
std::unordered_map< Triangle, SymmetricTensor > TriSymTensorMap
Map a triangle to a symmetric tensor.
bool operator==(const Triangle &other) const
bool operator<(const Triangle &other) const