random_quaternion.h 364 B

1234567891011121314
  1. #ifndef IGL_RANDOM_QUATERNION_H
  2. #define IGL_RANDOM_QUATERNION_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Geometry>
  5. namespace igl
  6. {
  7. // Return a random quaternion via uniform sampling of the 4-sphere
  8. template <typename Scalar>
  9. IGL_INLINE Eigen::Quaternion<Scalar> random_quaternion();
  10. }
  11. #ifndef IGL_STATIC_LIBRARY
  12. #include "random_quaternion.cpp"
  13. #endif
  14. #endif