view_axis.h 781 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_VIEW_AXIS_H
  2. #define IGL_VIEW_AXIS_H
  3. #include "igl_inline.h"
  4. namespace igl
  5. {
  6. // Determines the view axis or depth axis of the current gl matrix
  7. // Outputs:
  8. // x pointer to x-coordinate in scene coordinates of the un-normalized
  9. // viewing axis
  10. // y pointer to y-coordinate in scene coordinates of the un-normalized
  11. // viewing axis
  12. // z pointer to z-coordinate in scene coordinates of the un-normalized
  13. // viewing axis
  14. // mv pointer to modelview matrix
  15. //
  16. // Note: View axis is returned *UN-normalized*
  17. IGL_INLINE void view_axis(double * x, double * y, double * z);
  18. IGL_INLINE void view_axis(const double * mv, double * x, double * y, double * z);
  19. };
  20. #ifdef IGL_HEADER_ONLY
  21. # include "view_axis.cpp"
  22. #endif
  23. #endif