libigl v2.5.0
Loading...
Searching...
No Matches
two_axis_valuator_fixed_up.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_TWO_AXIS_VALUATOR_FIXED_AXIS_UP_H
9#define IGL_TWO_AXIS_VALUATOR_FIXED_AXIS_UP_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13#include <Eigen/Geometry>
14
15namespace igl
16{
32 template <typename Scalardown_quat, typename Scalarquat>
34 const int w,
35 const int h,
36 const double speed,
37 const Eigen::Quaternion<Scalardown_quat> & down_quat,
38 const int down_x,
39 const int down_y,
40 const int mouse_x,
41 const int mouse_y,
42 Eigen::Quaternion<Scalarquat> & quat);
43}
44
45#ifndef IGL_STATIC_LIBRARY
46# include "two_axis_valuator_fixed_up.cpp"
47#endif
48
49#endif
50
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void two_axis_valuator_fixed_up(const int w, const int h, const double speed, const Eigen::Quaternion< Scalardown_quat > &down_quat, const int down_x, const int down_y, const int mouse_x, const int mouse_y, Eigen::Quaternion< Scalarquat > &quat)
Applies a two-axis valuator drag rotation (as seen in Maya/Studio max) to a given rotation.