Warn when using an AABB or Rect2 with a negative size
This commit is contained in:
parent
e223a9c129
commit
9687f6fca3
7 changed files with 140 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue