193 } |
193 } |
194 |
194 |
195 /* |
195 /* |
196 * Transforms this vertex with a tranformation matrix and returns the result. |
196 * Transforms this vertex with a tranformation matrix and returns the result. |
197 */ |
197 */ |
198 Vertex Vertex::transformed(const GLRotationMatrix& matrix) const |
198 Vertex Vertex::transformed(const QMatrix4x4& matrix) const |
199 { |
199 { |
200 return { |
200 return { |
201 matrix(0, 0) * this->x |
201 matrix(0, 0) * this->x |
202 + matrix(0, 1) * this->y |
202 + matrix(0, 1) * this->y |
203 + matrix(0, 2) * this->z, |
203 + matrix(0, 2) * this->z, |