diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-25 18:14:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 18:14:49 +0100 |
commit | f708ab55530e47b2f9ad761b922f86363b27e9f7 (patch) | |
tree | 1f0d43004fe59f9ad28d8b10ce9317bc360583b0 /doc/classes/Rect2.xml | |
parent | dace1ec9126c752792a0566cfd9485a8ad40c0d1 (diff) | |
parent | 6c8f2ae53a1921aa8589cf4da735f5cd443ff706 (diff) |
Merge pull request #36510 from akien-mga/int-vectors-doc-bindings
Update docs and bindings for new integer vector types
Diffstat (limited to 'doc/classes/Rect2.xml')
-rw-r--r-- | doc/classes/Rect2.xml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index e32b19ff00..26abfb538b 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -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> |