src/geometry.h

changeset 106
128efb9d148b
parent 105
6ca6e8c647d4
child 108
94c92c923713
equal deleted inserted replaced
105:6ca6e8c647d4 106:128efb9d148b
100 100
101 struct NPolygon 101 struct NPolygon
102 { 102 {
103 std::vector<glm::vec3> points; 103 std::vector<glm::vec3> points;
104 }; 104 };
105
106 inline bool isclose(const glm::vec3& a, const glm::vec3& b)
107 {
108 return qFuzzyCompare(a.x, b.x)
109 and qFuzzyCompare(a.y, b.y)
110 and qFuzzyCompare(a.z, b.z);
111 }
105 } 112 }

mercurial