right_axis.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_OPENGL2_RIGHT_AXIS_H
  9. #define IGL_OPENGL2_RIGHT_AXIS_H
  10. #include "../igl_inline.h"
  11. namespace igl
  12. {
  13. namespace opengl2
  14. {
  15. // Determines the right axis or depth axis of the current gl matrix
  16. // Outputs:
  17. // x pointer to x-coordinate in scene coordinates of the un-normalized
  18. // right axis
  19. // y pointer to y-coordinate in scene coordinates of the un-normalized
  20. // right axis
  21. // z pointer to z-coordinate in scene coordinates of the un-normalized
  22. // right axis
  23. // mv pointer to modelview matrix
  24. //
  25. // Note: Right axis is returned *UN-normalized*
  26. IGL_INLINE void right_axis(double * x, double * y, double * z);
  27. IGL_INLINE void right_axis(const double * mv, double * x, double * y, double * z);
  28. }
  29. };
  30. #ifndef IGL_STATIC_LIBRARY
  31. # include "right_axis.cpp"
  32. #endif
  33. #endif