Matrix3D<float> getViewMatrix() const { Matrix3D<float> viewMatrix (Vector3D<float> (0.0f, 0.0f, -10.0f)); Matrix3D<float> rotationMatrix = viewMatrix.rotated (Vector3D<float> (-0.3f, 5.0f * std::sin (getFrameCounter() * 0.01f), 0.0f)); return rotationMatrix * viewMatrix; }
Matrix3D<float> GraphicsPanel::getViewMatrix(void) const { Matrix3D<float> viewMatrix = (_draggableOrientation.getRotationMatrix() * Vector3D<float>(0.0f, 1.0f, -10.0f)); Matrix3D<float> rotationMatrix = viewMatrix.rotated(Vector3D<float>(_rotation, _rotation, -0.3f)); return (rotationMatrix * viewMatrix); } // GraphicsPanel::getViewMatrix