9
3

perpendicular.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /// @ref gtx_perpendicular
  2. /// @file glm/gtx/perpendicular.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtx_projection (dependence)
  6. ///
  7. /// @defgroup gtx_perpendicular GLM_GTX_perpendicular
  8. /// @ingroup gtx
  9. ///
  10. /// Include <glm/gtx/perpendicular.hpp> to use the features of this extension.
  11. ///
  12. /// Perpendicular of a vector from other one
  13. #pragma once
  14. // Dependency:
  15. #include "../glm.hpp"
  16. #include "../gtx/projection.hpp"
  17. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  18. # ifndef GLM_ENABLE_EXPERIMENTAL
  19. # pragma message("GLM: GLM_GTX_perpendicular is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
  20. # else
  21. # pragma message("GLM: GLM_GTX_perpendicular extension included")
  22. # endif
  23. #endif
  24. namespace glm
  25. {
  26. /// @addtogroup gtx_perpendicular
  27. /// @{
  28. //! Projects x a perpendicular axis of Normal.
  29. //! From GLM_GTX_perpendicular extension.
  30. template<typename genType>
  31. GLM_FUNC_DECL genType perp(genType const& x, genType const& Normal);
  32. /// @}
  33. }//namespace glm
  34. #include "perpendicular.inl"