Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0KB

  1. /// @ref gtx_normal
  2. /// @file glm/gtx/normal.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtx_extented_min_max (dependence)
  6. ///
  7. /// @defgroup gtx_normal GLM_GTX_normal
  8. /// @ingroup gtx
  9. ///
  10. /// Include <glm/gtx/normal.hpp> to use the features of this extension.
  11. ///
  12. /// Compute the normal of a triangle.
  13. #pragma once
  14. // Dependency:
  15. #include "../glm.hpp"
  16. #ifndef GLM_ENABLE_EXPERIMENTAL
  17. # error "GLM: GLM_GTX_normal 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."
  18. #endif
  19. #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
  20. # pragma message("GLM: GLM_GTX_normal extension included")
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtx_normal
  25. /// @{
  26. /// Computes triangle normal from triangle points.
  27. ///
  28. /// @see gtx_normal
  29. template<typename T, qualifier Q>
  30. GLM_FUNC_DECL vec<3, T, Q> triangleNormal(vec<3, T, Q> const& p1, vec<3, T, Q> const& p2, vec<3, T, Q> const& p3);
  31. /// @}
  32. }//namespace glm
  33. #include "normal.inl"