add project method to Vector2/3

This commit is contained in:
Thomas Herzog
2018-08-16 12:52:38 +02:00
parent af93842f93
commit 037f4638ab
7 changed files with 32 additions and 7 deletions

View File

@@ -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>