Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2020-01-16 14:00:54 +0300
committerEnrico Turri <enricoturri@seznam.cz>2020-01-16 14:00:54 +0300
commita9529fbcdc314d4dc58b99cb53205dc6100538fd (patch)
tree272b46374a2d434d05aecbbd975f396e44f83323 /src/slic3r/GUI/Camera.hpp
parent89166accbe19c3599fb7c7102bc7d60a973213ed (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.hpp3
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