diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2020-01-16 14:00:54 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2020-01-16 14:00:54 +0300 |
commit | a9529fbcdc314d4dc58b99cb53205dc6100538fd (patch) | |
tree | 272b46374a2d434d05aecbbd975f396e44f83323 /src/slic3r/GUI/Camera.hpp | |
parent | 89166accbe19c3599fb7c7102bc7d60a973213ed (diff) |
Added method void Camera::rotate_local_around_pivot(const Vec3d& rotation_rad, const Vec3d& pivot) to rotate the camera around a generic point
Diffstat (limited to 'src/slic3r/GUI/Camera.hpp')
-rw-r--r-- | src/slic3r/GUI/Camera.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Camera.hpp b/src/slic3r/GUI/Camera.hpp index 257b27901..87060e288 100644 --- a/src/slic3r/GUI/Camera.hpp +++ b/src/slic3r/GUI/Camera.hpp @@ -136,6 +136,9 @@ public: // rotate the camera around three axes parallel to the camera local axes and passing through m_target void rotate_local_around_target(const Vec3d& rotation_rad); + // rotate the camera around three axes parallel to the camera local axes and passing through the given pivot point + void rotate_local_around_pivot(const Vec3d& rotation_rad, const Vec3d& pivot); + // returns true if the camera z axis (forward) is pointing in the negative direction of the world z axis bool is_looking_downward() const; #endif // ENABLE_6DOF_CAMERA |