Skip to content
Snippets Groups Projects
Commit 6edade90 authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

CameraParams restore c'tors (now complete)

parent ff5c844e
No related branches found
No related tags found
1 merge request!2256rm unused, detected by xunused
Pipeline #124198 failed
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Img3D/Type/CameraParams.cpp
//! @brief Implements struct CameraParams.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#include "Img3D/Type/CameraParams.h"
Img3D::CameraParams::CameraParams(const F3& eye_, const F3& ctr_, const F3& up_,
QQuaternion const& rot_)
: eye(eye_)
, ctr(ctr_)
, up(up_)
, rot(rot_)
{
}
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
namespace Img3D { namespace Img3D {
struct CameraParams { struct CameraParams {
CameraParams();
CameraParams(const F3& eye, const F3& ctr, const F3& up, const QQuaternion& = {});
F3 eye; F3 eye;
F3 ctr; // center F3 ctr; // center
F3 up; F3 up;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment