summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-03 18:34:37 +0200
committerGitHub <noreply@github.com>2022-08-03 18:34:37 +0200
commit259d7781eadad6fb8ac603ef4b68e0cffa373b70 (patch)
treee123b148e8323d0163d086dd15798be3b24c825f /core
parent2d372d9e106286ab281f26f85fdf0f24594469c8 (diff)
parent500766329f46277d3d9ff9a06c68ca79f635146a (diff)
Merge pull request #63875 from hakro/fix-segment-intersects-circle
Bring back Geometry2D.segment_intersects_circle
Diffstat (limited to 'core')
-rw-r--r--core/core_bind.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp
index 2cf6e8a025..56130134a0 100644
--- a/core/core_bind.cpp
+++ b/core/core_bind.cpp
@@ -933,6 +933,7 @@ Dictionary Geometry2D::make_atlas(const Vector<Size2> &p_rects) {
void Geometry2D::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_point_in_circle", "point", "circle_position", "circle_radius"), &Geometry2D::is_point_in_circle);
+ ClassDB::bind_method(D_METHOD("segment_intersects_circle", "segment_from", "segment_to", "circle_position", "circle_radius"), &Geometry2D::segment_intersects_circle);
ClassDB::bind_method(D_METHOD("segment_intersects_segment", "from_a", "to_a", "from_b", "to_b"), &Geometry2D::segment_intersects_segment);
ClassDB::bind_method(D_METHOD("line_intersects_line", "from_a", "dir_a", "from_b", "dir_b"), &Geometry2D::line_intersects_line);