4 #include <QtOpenGL/QtOpenGL>
7 * Represents an optionally-indexed vertex in space
12 Vertex(float x, float y, float z) : x(x), y(y), z(z) {}
17 bool operator!=(const Vertex& rhs) const
19 return x != rhs.x || y != rhs.y || z != rhs.z;
21 bool operator<(const Vertex& rhs) const
23 if (x != rhs.x) return x < rhs.x;
24 else if (y != rhs.y) return y < rhs.y;
25 else if (z != rhs.z) return z < rhs.z;