diff options
| author | Juan Linietsky | 2017-01-20 19:24:49 -0300 |
|---|---|---|
| committer | GitHub | 2017-01-20 19:24:49 -0300 |
| commit | ee0f53df52d88ca57079579f3f3e943e7e40f53a (patch) | |
| tree | fcf670f1e8aec411c6deaf97e9fc77bf5c195f31 /core/math/triangulate.h | |
| parent | 72a02555850016ab792cf498c5370983d3b72832 (diff) | |
| parent | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (diff) | |
| download | godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.gz godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.zst godot-ee0f53df52d88ca57079579f3f3e943e7e40f53a.zip | |
Diffstat (limited to 'core/math/triangulate.h')
| -rw-r--r-- | core/math/triangulate.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/math/triangulate.h b/core/math/triangulate.h index d22677a8b..ce7733451 100644 --- a/core/math/triangulate.h +++ b/core/math/triangulate.h @@ -45,14 +45,14 @@ public: static bool triangulate(const Vector< Vector2 > &contour, Vector<int> &result); // compute area of a contour/polygon - static float get_area(const Vector< Vector2 > &contour); + static real_t get_area(const Vector< Vector2 > &contour); // decide if point Px/Py is inside triangle defined by // (Ax,Ay) (Bx,By) (Cx,Cy) - static bool is_inside_triangle(float Ax, float Ay, - float Bx, float By, - float Cx, float Cy, - float Px, float Py); + static bool is_inside_triangle(real_t Ax, real_t Ay, + real_t Bx, real_t By, + real_t Cx, real_t Cy, + real_t Px, real_t Py); private: |
