Warn when using an AABB or Rect2 with a negative size

This commit is contained in:
Aaron Franke 2020-04-06 04:34:18 -04:00
parent e223a9c129
commit 9687f6fca3
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
7 changed files with 140 additions and 5 deletions

View file

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