ConvexHull.h 378 B

123456789101112131415161718
  1. // This code is in the public domain -- Ignacio Castaño <castano@gmail.com>
  2. #pragma once
  3. #ifndef NV_MATH_CONVEXHULL_H
  4. #define NV_MATH_CONVEXHULL_H
  5. #include "nvmath.h"
  6. #include "nvcore/Array.h"
  7. namespace nv {
  8. class Vector2;
  9. void convexHull(const Array<Vector2> & input, Array<Vector2> & output, float epsilon = 0);
  10. } // namespace nv
  11. #endif // NV_MATH_CONVEXHULL_H