diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2021-12-02 14:41:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 14:41:02 +0100 |
commit | 837e6bdf1859d2054b31730fb71c636f681300da (patch) | |
tree | 0f1c43a76928b485b16f15b05967cd05930e99d6 /doc/classes | |
parent | 1b661232074d910000b48bcdec2a7df97e1e4ea7 (diff) | |
parent | 9687f6fca34813ec6e63029244a95caf6b793a45 (diff) |
Merge pull request #37626 from aaronfranke/rect2-warnings
Print warnings when using a Rect2 or AABB with a negative size
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AABB.xml | 1 | ||||
-rw-r--r-- | doc/classes/Rect2.xml | 1 | ||||
-rw-r--r-- | doc/classes/Rect2i.xml | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/doc/classes/AABB.xml b/doc/classes/AABB.xml index 170cfea6f9..ac45682feb 100644 --- a/doc/classes/AABB.xml +++ b/doc/classes/AABB.xml @@ -6,6 +6,7 @@ <description> [AABB] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests. It uses floating-point coordinates. The 2D counterpart to [AABB] is [Rect2]. + Negative values for [member size] are not supported and will not work for most methods. Use [method abs] to get an AABB with a positive size. [b]Note:[/b] Unlike [Rect2], [AABB] does not have a variant that uses integer coordinates. </description> <tutorials> diff --git a/doc/classes/Rect2.xml b/doc/classes/Rect2.xml index 4dc3859ca5..65d1654c21 100644 --- a/doc/classes/Rect2.xml +++ b/doc/classes/Rect2.xml @@ -7,6 +7,7 @@ [Rect2] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests. It uses floating-point coordinates. If you need integer coordinates, use [Rect2i] instead. The 3D counterpart to [Rect2] is [AABB]. + Negative values for [member size] are not supported and will not work for most methods. Use [method abs] to get a Rect2 with a positive size. </description> <tutorials> <link title="Math documentation index">$DOCS_URL/tutorials/math/index.html</link> diff --git a/doc/classes/Rect2i.xml b/doc/classes/Rect2i.xml index d66b589ec1..5909784135 100644 --- a/doc/classes/Rect2i.xml +++ b/doc/classes/Rect2i.xml @@ -6,6 +6,7 @@ <description> [Rect2i] consists of a position, a size, and several utility functions. It is typically used for fast overlap tests. It uses integer coordinates. If you need floating-point coordinates, use [Rect2] instead. + Negative values for [member size] are not supported and will not work for most methods. Use [method abs] to get a Rect2i with a positive size. </description> <tutorials> <link title="Math documentation index">$DOCS_URL/tutorials/math/index.html</link> |