classref: Sync with latest 4.0-alpha

This commit is contained in:
Rémi Verschelde
2022-02-01 16:35:13 +01:00
parent dd764520c6
commit 551ab512ca
419 changed files with 12867 additions and 9872 deletions
+6 -4
View File
@@ -20,6 +20,8 @@ It uses floating-point coordinates. If you need integer coordinates, use :ref:`R
The 3D counterpart to ``Rect2`` is :ref:`AABB<class_AABB>`.
Negative values for :ref:`size<class_Rect2_property_size>` are not supported and will not work for most methods. Use :ref:`abs<class_Rect2_method_abs>` to get a Rect2 with a positive size.
Tutorials
---------
@@ -200,7 +202,7 @@ Returns ``true`` if this ``Rect2`` completely encloses another one.
Returns a copy of this ``Rect2`` expanded to include a given point.
**Example:**
\ **Example:**\
.. tabs::
@@ -277,7 +279,7 @@ Returns ``true`` if the ``Rect2`` is flat or empty.
Returns ``true`` if the ``Rect2`` contains a point. By convention, the right and bottom edges of the ``Rect2`` are considered exclusive, so points on these edges are **not** included.
**Note:** This method is not reliable for ``Rect2`` with a *negative size*. Use :ref:`abs<class_Rect2_method_abs>` to get a positive sized equivalent rectangle to check for contained points.
\ **Note:** This method is not reliable for ``Rect2`` with a *negative size*. Use :ref:`abs<class_Rect2_method_abs>` to get a positive sized equivalent rectangle to check for contained points.
----
@@ -328,7 +330,7 @@ Operator Descriptions
Returns ``true`` if the rectangles are not equal.
**Note:** Due to floating-point precision errors, consider using :ref:`is_equal_approx<class_Rect2_method_is_equal_approx>` instead, which is more reliable.
\ **Note:** Due to floating-point precision errors, consider using :ref:`is_equal_approx<class_Rect2_method_is_equal_approx>` instead, which is more reliable.
----
@@ -350,7 +352,7 @@ Inversely transforms (multiplies) the ``Rect2`` by the given :ref:`Transform2D<c
Returns ``true`` if the rectangles are exactly equal.
**Note:** Due to floating-point precision errors, consider using :ref:`is_equal_approx<class_Rect2_method_is_equal_approx>` instead, which is more reliable.
\ **Note:** Due to floating-point precision errors, consider using :ref:`is_equal_approx<class_Rect2_method_is_equal_approx>` instead, which is more reliable.
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`