libigl v2.5.0
Loading...
Searching...
No Matches
snap_to_canonical_view_quat.h File Reference
#include "igl_inline.h"
#include <Eigen/Geometry>
#include "snap_to_canonical_view_quat.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename Scalarq , typename Scalars >
bool igl::snap_to_canonical_view_quat (const Eigen::Quaternion< Scalarq > &q, const double threshold, Eigen::Quaternion< Scalars > &s)
 Snap the quaternion q to the nearest canonical view quaternion.
 
template<typename Q_type >
bool igl::snap_to_canonical_view_quat (const Q_type *q, const Q_type threshold, Q_type *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.