68 void apply (ApplyConstFunction func) const; |
68 void apply (ApplyConstFunction func) const; |
69 QString toString (bool mangled = false) const; |
69 QString toString (bool mangled = false) const; |
70 void transform (const Matrix& matr, const Vertex& pos); |
70 void transform (const Matrix& matr, const Vertex& pos); |
71 void setCoordinate (Axis ax, qreal value); |
71 void setCoordinate (Axis ax, qreal value); |
72 |
72 |
|
73 Vertex& operator+= (const Vertex& other); |
|
74 Vertex operator+ (const Vertex& other) const; |
|
75 Vertex& operator*= (qreal scalar); |
|
76 Vertex operator* (qreal scalar) const; |
73 bool operator< (const Vertex& other) const; |
77 bool operator< (const Vertex& other) const; |
74 double operator[] (Axis ax) const; |
78 double operator[] (Axis ax) const; |
75 }; |
79 }; |
|
80 |
|
81 inline Vertex operator* (qreal scalar, const Vertex& vertex) |
|
82 { |
|
83 return vertex * scalar; |
|
84 } |
76 |
85 |
77 Q_DECLARE_METATYPE (Vertex) |
86 Q_DECLARE_METATYPE (Vertex) |
78 |
87 |
79 // |
88 // |
80 // A mathematical 3 x 3 matrix |
89 // A mathematical 3 x 3 matrix |