up_axis.h 726 B

1234567891011121314151617181920212223242526
  1. #ifndef IGL_UP_AXIS_H
  2. #define IGL_UP_AXIS_H
  3. #include "igl_inline.h"
  4. namespace igl
  5. {
  6. // Determines the up 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. // up axis
  10. // y pointer to y-coordinate in scene coordinates of the un-normalized
  11. // up axis
  12. // z pointer to z-coordinate in scene coordinates of the un-normalized
  13. // up axis
  14. // mv pointer to modelview matrix
  15. //
  16. // Note: Up axis is returned *UN-normalized*
  17. IGL_INLINE void up_axis(double * x, double * y, double * z);
  18. IGL_INLINE void up_axis(const double * mv, double * x, double * y, double * z);
  19. };
  20. #ifdef IGL_HEADER_ONLY
  21. # include "up_axis.cpp"
  22. #endif
  23. #endif