// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #ifndef IGL_SNAP_TO_FIXED_UP_H #define IGL_SNAP_TO_FIXED_UP_H #include "igl_inline.h" #include #include namespace igl { /// Snap an arbitrary rotation to a rotation resulting from a rotation about /// the y-axis then the x-axis (maintaining fixed up like /// two_axis_valuator_fixed_up.) /// /// @param[in] q General rotation as quaternion /// @param[out] s the resulting rotation (as quaternion) /// /// \see two_axis_valuator_fixed_up template IGL_INLINE void snap_to_fixed_up( const Eigen::Quaternion & q, Eigen::Quaternion & s); } #ifndef IGL_STATIC_LIBRARY # include "snap_to_fixed_up.cpp" #endif #endif