Functions.h 530 B

12345678910111213141516171819202122232425
  1. #ifndef ANKI_COLLISION_FUNCTIONS_H
  2. #define ANKI_COLLISION_FUNCTIONS_H
  3. #include "anki/collision/Plane.h"
  4. #include "anki/collision/Frustum.h"
  5. namespace anki {
  6. /// @addtogroup Collision
  7. /// @{
  8. /// Extract the clip planes using an MVP matrix
  9. ///
  10. /// @param[in] mvp The MVP matrix.
  11. /// @param[out] planes Pointers to the planes. Elements can be nullptr
  12. ///
  13. /// @note plane_count * 8 muls, plane_count sqrt
  14. extern void extractClipPlanes(const Mat4& mvp,
  15. Plane* planes[Frustum::FP_COUNT]);
  16. /// @}
  17. } // end namespace anki
  18. #endif