src/types/vertex.h

changeset 1390
3eace926af7f
parent 1371
b8df4748d04e
child 1403
7a2d84112983
equal deleted inserted replaced
1389:3fb8ad4d27b1 1390:3eace926af7f
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;

mercurial