Add documentation to operators for math types

Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
Aaron Franke 2021-11-04 10:58:20 -05:00
parent ee939c919b
commit 813466b3c8
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
31 changed files with 1367 additions and 91 deletions

View file

@ -178,12 +178,15 @@
<return type="bool" />
<argument index="0" name="right" type="Rect2" />
<description>
Returns [code]true[/code] if the rectangles are not equal.
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
</description>
</operator>
<operator name="operator *">
<return type="Rect2" />
<argument index="0" name="right" type="Transform2D" />
<description>
Inversely transforms (multiplies) the [Rect2] by the given [Transform2D] transformation matrix.
</description>
</operator>
<operator name="operator ==">
@ -195,6 +198,8 @@
<return type="bool" />
<argument index="0" name="right" type="Rect2" />
<description>
Returns [code]true[/code] if the rectangles are exactly equal.
[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
</description>
</operator>
</operators>