From 500766329f46277d3d9ff9a06c68ca79f635146a Mon Sep 17 00:00:00 2001 From: Hakim Date: Wed, 3 Aug 2022 15:36:54 +0200 Subject: Bring back Geometry2D.segment_intersects_circle --- doc/classes/Geometry2D.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/Geometry2D.xml b/doc/classes/Geometry2D.xml index 195c481187..a4cfa1ddff 100644 --- a/doc/classes/Geometry2D.xml +++ b/doc/classes/Geometry2D.xml @@ -188,6 +188,16 @@ Returns if [code]point[/code] is inside the triangle specified by [code]a[/code], [code]b[/code] and [code]c[/code]. + + + + + + + + Given the 2D segment ([code]segment_from[/code], [code]segment_to[/code]), returns the position on the segment (as a number between 0 and 1) at which the segment hits the circle that is located at position [code]circle_position[/code] and has radius [code]circle_radius[/code]. If the segment does not intersect the circle, -1 is returned (this is also the case if the line extending the segment would intersect the circle, but the segment does not). + + -- cgit v1.2.3