summaryrefslogtreecommitdiff
path: root/core/math/geometry.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-01 19:23:02 +0200
committerGitHub <noreply@github.com>2019-09-01 19:23:02 +0200
commit62c0185cb3c2c808c78e9107333a3c4bdb6dadfd (patch)
treee8cdb54b8fad345110804944665297937eb50b8d /core/math/geometry.h
parent4611977d49e001b9c56bf07d9c3fc1b58047f307 (diff)
parent08272585e9daa3dfb4988e7f495212ffe5979bfc (diff)
Merge pull request #31865 from Xrayez/geometry-remove-transform
Remove redundant transform method in Geometry singleton
Diffstat (limited to 'core/math/geometry.h')
-rw-r--r--core/math/geometry.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/math/geometry.h b/core/math/geometry.h
index b512cfce80..8b0a51c651 100644
--- a/core/math/geometry.h
+++ b/core/math/geometry.h
@@ -832,16 +832,6 @@ public:
return _polypath_offset(p_polygon, p_delta, p_join_type, p_end_type);
}
- static Vector<Point2> transform_points_2d(const Vector<Point2> &p_points, const Transform2D &p_mat) {
-
- Vector<Point2> points;
-
- for (int i = 0; i < p_points.size(); ++i) {
- points.push_back(p_mat.xform(p_points[i]));
- }
- return points;
- }
-
static Vector<int> triangulate_delaunay_2d(const Vector<Vector2> &p_points) {
Vector<Delaunay2D::Triangle> tr = Delaunay2D::triangulate(p_points);