mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (89cc635)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user