summaryrefslogtreecommitdiffstats
path: root/core/math/delaunay_2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/math/delaunay_2d.h')
-rw-r--r--core/math/delaunay_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/delaunay_2d.h b/core/math/delaunay_2d.h
index 95064e5700..2f80cb5634 100644
--- a/core/math/delaunay_2d.h
+++ b/core/math/delaunay_2d.h
@@ -101,7 +101,7 @@ public:
}
float delta_max = MAX(rect.size.width, rect.size.height);
- Vector2 center = rect.position + rect.size * 0.5;
+ Vector2 center = rect.get_center();
points.push_back(Vector2(center.x - 20 * delta_max, center.y - delta_max));
points.push_back(Vector2(center.x, center.y + 20 * delta_max));