classref: Sync with current master branch (89cc635)

This commit is contained in:
Godot Organization
2024-01-06 03:19:33 +00:00
parent 43f0195ba1
commit de1b79e21f
48 changed files with 1056 additions and 621 deletions

View File

@@ -81,6 +81,10 @@ Methods
+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Vector3i<class_Vector3i>` | :ref:`clamp<class_Vector3i_method_clamp>` **(** :ref:`Vector3i<class_Vector3i>` min, :ref:`Vector3i<class_Vector3i>` max **)** |const| |
+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`distance_squared_to<class_Vector3i_method_distance_squared_to>` **(** :ref:`Vector3i<class_Vector3i>` to **)** |const| |
+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`distance_to<class_Vector3i_method_distance_to>` **(** :ref:`Vector3i<class_Vector3i>` to **)** |const| |
+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`float<class_float>` | :ref:`length<class_Vector3i_method_length>` **(** **)** |const| |
+---------------------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`length_squared<class_Vector3i_method_length_squared>` **(** **)** |const| |
@@ -376,6 +380,32 @@ Returns a new vector with all components clamped between the components of ``min
----
.. _class_Vector3i_method_distance_squared_to:
.. rst-class:: classref-method
:ref:`int<class_int>` **distance_squared_to** **(** :ref:`Vector3i<class_Vector3i>` to **)** |const|
Returns the squared distance between this vector and ``to``.
This method runs faster than :ref:`distance_to<class_Vector3i_method_distance_to>`, so prefer it if you need to compare vectors or need the squared distance for some formula.
.. rst-class:: classref-item-separator
----
.. _class_Vector3i_method_distance_to:
.. rst-class:: classref-method
:ref:`float<class_float>` **distance_to** **(** :ref:`Vector3i<class_Vector3i>` to **)** |const|
Returns the distance between this vector and ``to``.
.. rst-class:: classref-item-separator
----
.. _class_Vector3i_method_length:
.. rst-class:: classref-method