right_axis.h 778 B

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