GjkEpa.h 596 B

12345678910111213141516171819202122
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Collision/Common.h>
  7. #include <AnKi/Math.h>
  8. namespace anki {
  9. /// @addtogroup collision
  10. /// @{
  11. using GjkSupportCallback = Vec4 (*)(const void* shape, const Vec4& dir);
  12. /// Return true if the two convex shapes intersect.
  13. Bool gjkIntersection(const void* shape0, GjkSupportCallback shape0Callback, const void* shape1, GjkSupportCallback shape1Callback);
  14. /// @}
  15. } // end namespace anki