src/types/vertex.cpp

changeset 1404
16eb4257e662
parent 1403
7a2d84112983
child 1407
22bc5862cb56
equal deleted inserted replaced
1403:7a2d84112983 1404:16eb4257e662
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,

mercurial