37 static QMatrix4x4 createRotationMatrix(
float angle, QVector3D dim) {
39 QMatrix4x4 rotationMatrix = QMatrix4x4();
41 rotationMatrix.rotate(angle, dim);
42 return rotationMatrix;
47 #endif // SCENEOBJECT_H
void rotateZ(float angle)
Definition: SceneObject.cpp:25
void rotateX_World(float angle)
Definition: SceneObject.cpp:33
void rotateX(float angle)
Definition: SceneObject.cpp:13
virtual ~SceneObject()
Definition: SceneObject.cpp:8
void rotateY(float angle)
Definition: SceneObject.cpp:19
void translate(QVector3D direction)
Definition: SceneObject.cpp:51
void setPosition(QVector3D newPos)
Definition: SceneObject.cpp:56
Definition: SceneObject.h:8
SceneObject(QMatrix4x4 _modelMatrix)
Definition: SceneObject.cpp:3
void rotateZ_World(float angle)
Definition: SceneObject.cpp:45
QMatrix4x4 modelMatrix
Definition: SceneObject.h:15
void rotateY_World(float angle)
Definition: SceneObject.cpp:39