mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add documentation to operators for math types
Co-authored-by: Raul Santos <raulsntos@gmail.com>
This commit is contained in:
parent
ee939c919b
commit
813466b3c8
31 changed files with 1367 additions and 91 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue