46 bool operator<(const Vertex& other) const; |
46 bool operator<(const Vertex& other) const; |
47 double& operator[](Axis ax); |
47 double& operator[](Axis ax); |
48 double operator[](Axis ax) const; |
48 double operator[](Axis ax) const; |
49 bool operator==(const Vertex& other) const; |
49 bool operator==(const Vertex& other) const; |
50 bool operator!=(const Vertex& other) const; |
50 bool operator!=(const Vertex& other) const; |
|
51 |
|
52 static Vertex fromVector(const QVector3D& vector); |
51 }; |
53 }; |
52 |
54 |
53 inline Vertex operator*(qreal scalar, const Vertex& vertex) |
55 inline Vertex operator*(qreal scalar, const Vertex& vertex) |
54 { |
56 { |
55 return vertex * scalar; |
57 return vertex * scalar; |