summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorThomas Herzog <therzog@mail.de>2018-08-16 12:52:38 +0200
committerThomas Herzog <therzog@mail.de>2018-08-16 12:52:38 +0200
commit037f4638aba99981393edd247057f851e80db489 (patch)
tree70075682e7bd0666b69e4f78d9fac5292715de7e /doc
parentaf93842f937270f5e25cd7270fba1cde18cd21c9 (diff)
add project method to Vector2/3
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Vector2.xml9
-rw-r--r--doc/classes/Vector3.xml9
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/classes/Vector2.xml b/doc/classes/Vector2.xml
index 6ffeddf5c1..9b18962a6f 100644
--- a/doc/classes/Vector2.xml
+++ b/doc/classes/Vector2.xml
@@ -130,6 +130,15 @@
Returns the distance to vector [code]b[/code].
</description>
</method>
+ <method name="project">
+ <return type="Vector2">
+ </return>
+ <argument index="0" name="b" type="Vector2">
+ </argument>
+ <description>
+ Returns the vector projected onto the vector [code]b[/code].
+ </description>
+ </method>
<method name="dot">
<return type="float">
</return>
diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml
index 62a480166a..22384c5012 100644
--- a/doc/classes/Vector3.xml
+++ b/doc/classes/Vector3.xml
@@ -99,6 +99,15 @@
Returns the distance to [code]b[/code].
</description>
</method>
+ <method name="project_onto">
+ <return type="Vector3">
+ </return>
+ <argument index="0" name="b" type="Vector3">
+ </argument>
+ <description>
+ Returns the vector projected onto the vector [code]b[/code].
+ </description>
+ </method>
<method name="dot">
<return type="float">
</return>