aboutsummaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorBernhard Liebl2018-01-21 09:21:02 +0100
committerBernhard Liebl2018-01-21 15:31:34 +0100
commitc1e099b48f7fe4dc114d10c49f2d49c58a91e40f (patch)
tree6ece9362d1f20649fd89230c41395cb3c7cc4a84 /doc/classes
parentfa569210f5ef316177724169a42d2b82f4ab03d9 (diff)
downloadgodot-c1e099b48f7fe4dc114d10c49f2d49c58a91e40f.tar.gz
godot-c1e099b48f7fe4dc114d10c49f2d49c58a91e40f.tar.zst
godot-c1e099b48f7fe4dc114d10c49f2d49c58a91e40f.zip
Add Geometry::line_intersects_line_2d()
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Geometry.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/Geometry.xml b/doc/classes/Geometry.xml
index a40094d84..10ba78793 100644
--- a/doc/classes/Geometry.xml
+++ b/doc/classes/Geometry.xml
@@ -259,6 +259,21 @@
Checks if the two segments ([code]from_a[/code], [code]to_a[/code]) and ([code]from_b[/code], [code]to_b[/code]) intersect. If yes, return the point of intersection as [Vector2]. If no intersection takes place, returns an empty [Variant].
</description>
</method>
+ <method name="line_intersects_line_2d">
+ <return type="Variant">
+ </return>
+ <argument index="0" name="from_a" type="Vector2">
+ </argument>
+ <argument index="1" name="dir_a" type="Vector2">
+ </argument>
+ <argument index="2" name="from_b" type="Vector2">
+ </argument>
+ <argument index="3" name="dir_b" type="Vector2">
+ </argument>
+ <description>
+ Checks if the two lines ([code]from_a[/code], [code]dir_a[/code]) and ([code]from_b[/code], [code]dir_b[/code]) intersect. If yes, return the point of intersection as [Vector2]. If no intersection takes place, returns an empty [Variant]. Note that the lines are specified using direction vectors, not end points.
+ </description>
+ </method>
<method name="segment_intersects_sphere">
<return type="PoolVector3Array">
</return>