diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-07 17:54:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 17:54:33 -0300 |
commit | 69a96ff4a627fabea2bc40ed27b973f202c44825 (patch) | |
tree | c31f2f35240d66f7cb8bb2622f541566c028b987 /doc/classes | |
parent | cbd849d13fec42302c0a6e96531c54a71c7d43f8 (diff) | |
parent | c1e099b48f7fe4dc114d10c49f2d49c58a91e40f (diff) |
Merge pull request #15943 from poke1024/geometry-line-line
Add Geometry::line_intersects_line_2d()
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Geometry.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/classes/Geometry.xml b/doc/classes/Geometry.xml index 7b25f87b19..78496700dc 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> |