Update docs and bindings for new integer vector types

This commit is contained in:
Rémi Verschelde
2020-02-24 17:00:40 +01:00
parent 2f237d181b
commit 6c8f2ae53a
16 changed files with 358 additions and 101 deletions

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="Rect2" version="4.0">
<brief_description>
2D axis-aligned bounding box.
2D axis-aligned bounding box using floating point coordinates.
</brief_description>
<description>
Rect2 consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
[Rect2] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests.
It uses floating point coordinates.
</description>
<tutorials>
<link>https://docs.godotengine.org/en/latest/tutorials/math/index.html</link>
@ -36,6 +37,15 @@
Constructs a [Rect2] by x, y, width, and height.
</description>
</method>
<method name="Rect2">
<return type="Rect2">
</return>
<argument index="0" name="from" type="Rect2i">
</argument>
<description>
Constructs a [Rect2] from a [Rect2i].
</description>
</method>
<method name="abs">
<return type="Rect2">
</return>