12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #pragma once
- #include "vector2.h"
- template <typename T>
- bool Polygon_outside(const Vector2<T> &P, const Vector2<T> *V, unsigned n) WARN_IF_UNUSED;
- template <typename T>
- bool Polygon_complete(const Vector2<T> *V, unsigned n) WARN_IF_UNUSED;
- bool Polygon_intersects(const Vector2f *V, unsigned N, const Vector2f &p1, const Vector2f &p2, Vector2f &intersection) WARN_IF_UNUSED;
- float Polygon_closest_distance_line(const Vector2f *V, unsigned N, const Vector2f &p1, const Vector2f &p2);
- float Polygon_closest_distance_point(const Vector2f *V, unsigned N, const Vector2f &p);
|