src/basics.cpp

changeset 1314
d94cf95608ac
parent 1313
4baed9f54de3
child 1315
23d48a709ffc
equal deleted inserted replaced
1313:4baed9f54de3 1314:d94cf95608ac
188 + matrix(1, 2) * this->z, 188 + matrix(1, 2) * this->z,
189 matrix(2, 0) * this->x 189 matrix(2, 0) * this->x
190 + matrix(2, 1) * this->y 190 + matrix(2, 1) * this->y
191 + matrix(2, 2) * this->z, 191 + matrix(2, 2) * this->z,
192 }; 192 };
193 }
194
195 QDataStream& operator<<(QDataStream& out, const Vertex& vertex)
196 {
197 return out << vertex.x << vertex.y << vertex.z;
198 }
199
200 QDataStream& operator>>(QDataStream& in, Vertex& vertex)
201 {
202 return in >> vertex.x >> vertex.y >> vertex.z;
193 } 203 }
194 204
195 // ============================================================================= 205 // =============================================================================
196 // 206 //
197 BoundingBox::BoundingBox() 207 BoundingBox::BoundingBox()

mercurial