diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-05-19 17:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 17:27:55 +0200 |
commit | c2151e18135817c9f926a5a00341016ac77301d4 (patch) | |
tree | ef0c0fe7f7be76cab6234418ba77f8e18ca6d523 /core/math/geometry.cpp | |
parent | 004ca80f0170b02899482bb36e77eef9de9b9ee8 (diff) | |
parent | 85220fec010a4946cb364974eac69418b4e06411 (diff) |
Merge pull request #38857 from akien-mga/style-clang-format-unnecessary-semicolons
Style: Remove unnecessary semicolons from `core`
Diffstat (limited to 'core/math/geometry.cpp')
-rw-r--r-- | core/math/geometry.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp index f6f22e1db2..a4e9169a6f 100644 --- a/core/math/geometry.cpp +++ b/core/math/geometry.cpp @@ -42,16 +42,15 @@ // This implementation is very inefficient, commenting unless bugs happen. See the other one. /* bool Geometry::is_point_in_polygon(const Vector2 &p_point, const Vector<Vector2> &p_polygon) { - Vector<int> indices = Geometry::triangulate_polygon(p_polygon); for (int j = 0; j + 3 <= indices.size(); j += 3) { int i1 = indices[j], i2 = indices[j + 1], i3 = indices[j + 2]; - if (Geometry::is_point_in_triangle(p_point, p_polygon[i1], p_polygon[i2], p_polygon[i3])) + if (Geometry::is_point_in_triangle(p_point, p_polygon[i1], p_polygon[i2], p_polygon[i3])) { return true; + } } return false; } - */ void Geometry::MeshData::optimize_vertices() { |