mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Sync with current master branch (705b7a0)
This commit is contained in:
@@ -159,7 +159,7 @@ Constants
|
||||
|
||||
.. rst-class:: classref-constant
|
||||
|
||||
**IDENTITY** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)``
|
||||
**IDENTITY** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗<class_Transform3D_constant_IDENTITY>`
|
||||
|
||||
A transform with no translation, no rotation, and its scale being ``1``. Its :ref:`basis<class_Transform3D_property_basis>` is equal to :ref:`Basis.IDENTITY<class_Basis_constant_IDENTITY>`.
|
||||
|
||||
@@ -169,7 +169,7 @@ When multiplied by another :ref:`Variant<class_Variant>` such as :ref:`AABB<clas
|
||||
|
||||
.. rst-class:: classref-constant
|
||||
|
||||
**FLIP_X** = ``Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)``
|
||||
**FLIP_X** = ``Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗<class_Transform3D_constant_FLIP_X>`
|
||||
|
||||
**Transform3D** with mirroring applied perpendicular to the YZ plane. Its :ref:`basis<class_Transform3D_property_basis>` is equal to :ref:`Basis.FLIP_X<class_Basis_constant_FLIP_X>`.
|
||||
|
||||
@@ -177,7 +177,7 @@ When multiplied by another :ref:`Variant<class_Variant>` such as :ref:`AABB<clas
|
||||
|
||||
.. rst-class:: classref-constant
|
||||
|
||||
**FLIP_Y** = ``Transform3D(1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0)``
|
||||
**FLIP_Y** = ``Transform3D(1, 0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0)`` :ref:`🔗<class_Transform3D_constant_FLIP_Y>`
|
||||
|
||||
**Transform3D** with mirroring applied perpendicular to the XZ plane. Its :ref:`basis<class_Transform3D_property_basis>` is equal to :ref:`Basis.FLIP_Y<class_Basis_constant_FLIP_Y>`.
|
||||
|
||||
@@ -185,7 +185,7 @@ When multiplied by another :ref:`Variant<class_Variant>` such as :ref:`AABB<clas
|
||||
|
||||
.. rst-class:: classref-constant
|
||||
|
||||
**FLIP_Z** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)``
|
||||
**FLIP_Z** = ``Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)`` :ref:`🔗<class_Transform3D_constant_FLIP_Z>`
|
||||
|
||||
**Transform3D** with mirroring applied perpendicular to the XY plane. Its :ref:`basis<class_Transform3D_property_basis>` is equal to :ref:`Basis.FLIP_Z<class_Basis_constant_FLIP_Z>`.
|
||||
|
||||
@@ -202,7 +202,7 @@ Property Descriptions
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`Basis<class_Basis>` **basis** = ``Basis(1, 0, 0, 0, 1, 0, 0, 0, 1)``
|
||||
:ref:`Basis<class_Basis>` **basis** = ``Basis(1, 0, 0, 0, 1, 0, 0, 0, 1)`` :ref:`🔗<class_Transform3D_property_basis>`
|
||||
|
||||
The :ref:`Basis<class_Basis>` of this transform. It is composed by 3 axes (:ref:`Basis.x<class_Basis_property_x>`, :ref:`Basis.y<class_Basis_property_y>`, and :ref:`Basis.z<class_Basis_property_z>`). Together, these represent the transform's rotation, scale, and shear.
|
||||
|
||||
@@ -214,7 +214,7 @@ The :ref:`Basis<class_Basis>` of this transform. It is composed by 3 axes (:ref:
|
||||
|
||||
.. rst-class:: classref-property
|
||||
|
||||
:ref:`Vector3<class_Vector3>` **origin** = ``Vector3(0, 0, 0)``
|
||||
:ref:`Vector3<class_Vector3>` **origin** = ``Vector3(0, 0, 0)`` :ref:`🔗<class_Transform3D_property_origin>`
|
||||
|
||||
The translation offset of this transform. In 3D space, this can be seen as the position.
|
||||
|
||||
@@ -231,7 +231,7 @@ Constructor Descriptions
|
||||
|
||||
.. rst-class:: classref-constructor
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **Transform3D**\ (\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **Transform3D**\ (\ ) :ref:`🔗<class_Transform3D_constructor_Transform3D>`
|
||||
|
||||
Constructs a **Transform3D** identical to the :ref:`IDENTITY<class_Transform3D_constant_IDENTITY>`.
|
||||
|
||||
@@ -290,7 +290,7 @@ Method Descriptions
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **affine_inverse**\ (\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **affine_inverse**\ (\ ) |const| :ref:`🔗<class_Transform3D_method_affine_inverse>`
|
||||
|
||||
Returns the inverted version of this transform. Unlike :ref:`inverse<class_Transform3D_method_inverse>`, this method works with almost any :ref:`basis<class_Transform3D_property_basis>`, including non-uniform ones, but is slower. See also :ref:`Basis.inverse<class_Basis_method_inverse>`.
|
||||
|
||||
@@ -304,7 +304,7 @@ Returns the inverted version of this transform. Unlike :ref:`inverse<class_Trans
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **interpolate_with**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, weight\: :ref:`float<class_float>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **interpolate_with**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, weight\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Transform3D_method_interpolate_with>`
|
||||
|
||||
Returns the result of the linear interpolation between this transform and ``xform`` by the given ``weight``.
|
||||
|
||||
@@ -318,7 +318,7 @@ The ``weight`` should be between ``0.0`` and ``1.0`` (inclusive). Values outside
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **inverse**\ (\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **inverse**\ (\ ) |const| :ref:`🔗<class_Transform3D_method_inverse>`
|
||||
|
||||
Returns the inverted version of this transform. See also :ref:`Basis.inverse<class_Basis_method_inverse>`.
|
||||
|
||||
@@ -332,7 +332,7 @@ Returns the inverted version of this transform. See also :ref:`Basis.inverse<cla
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **is_equal_approx**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`\ ) |const|
|
||||
:ref:`bool<class_bool>` **is_equal_approx**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`\ ) |const| :ref:`🔗<class_Transform3D_method_is_equal_approx>`
|
||||
|
||||
Returns ``true`` if this transform and ``xform`` are approximately equal, by running :ref:`@GlobalScope.is_equal_approx<class_@GlobalScope_method_is_equal_approx>` on each component.
|
||||
|
||||
@@ -344,7 +344,7 @@ Returns ``true`` if this transform and ``xform`` are approximately equal, by run
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`bool<class_bool>` **is_finite**\ (\ ) |const|
|
||||
:ref:`bool<class_bool>` **is_finite**\ (\ ) |const| :ref:`🔗<class_Transform3D_method_is_finite>`
|
||||
|
||||
Returns ``true`` if this transform is finite, by calling :ref:`@GlobalScope.is_finite<class_@GlobalScope_method_is_finite>` on each component.
|
||||
|
||||
@@ -356,7 +356,7 @@ Returns ``true`` if this transform is finite, by calling :ref:`@GlobalScope.is_f
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **looking_at**\ (\ target\: :ref:`Vector3<class_Vector3>`, up\: :ref:`Vector3<class_Vector3>` = Vector3(0, 1, 0), use_model_front\: :ref:`bool<class_bool>` = false\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **looking_at**\ (\ target\: :ref:`Vector3<class_Vector3>`, up\: :ref:`Vector3<class_Vector3>` = Vector3(0, 1, 0), use_model_front\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`🔗<class_Transform3D_method_looking_at>`
|
||||
|
||||
Returns a copy of this transform rotated so that the forward axis (-Z) points towards the ``target`` position.
|
||||
|
||||
@@ -372,7 +372,7 @@ If ``use_model_front`` is ``true``, the +Z axis (asset front) is treated as forw
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **orthonormalized**\ (\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **orthonormalized**\ (\ ) |const| :ref:`🔗<class_Transform3D_method_orthonormalized>`
|
||||
|
||||
Returns a copy of this transform with its :ref:`basis<class_Transform3D_property_basis>` orthonormalized. An orthonormal basis is both *orthogonal* (the axes are perpendicular to each other) and *normalized* (the axes have a length of ``1``), which also means it can only represent rotation. See also :ref:`Basis.orthonormalized<class_Basis_method_orthonormalized>`.
|
||||
|
||||
@@ -384,7 +384,7 @@ Returns a copy of this transform with its :ref:`basis<class_Transform3D_property
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **rotated**\ (\ axis\: :ref:`Vector3<class_Vector3>`, angle\: :ref:`float<class_float>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **rotated**\ (\ axis\: :ref:`Vector3<class_Vector3>`, angle\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Transform3D_method_rotated>`
|
||||
|
||||
Returns a copy of this transform rotated around the given ``axis`` by the given ``angle`` (in radians).
|
||||
|
||||
@@ -402,7 +402,7 @@ This can be seen as transforming with respect to the global/parent frame.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **rotated_local**\ (\ axis\: :ref:`Vector3<class_Vector3>`, angle\: :ref:`float<class_float>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **rotated_local**\ (\ axis\: :ref:`Vector3<class_Vector3>`, angle\: :ref:`float<class_float>`\ ) |const| :ref:`🔗<class_Transform3D_method_rotated_local>`
|
||||
|
||||
Returns a copy of this transform rotated around the given ``axis`` by the given ``angle`` (in radians).
|
||||
|
||||
@@ -420,7 +420,7 @@ This can be seen as transforming with respect to the local frame.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **scaled**\ (\ scale\: :ref:`Vector3<class_Vector3>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **scaled**\ (\ scale\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`🔗<class_Transform3D_method_scaled>`
|
||||
|
||||
Returns a copy of this transform scaled by the given ``scale`` factor.
|
||||
|
||||
@@ -436,7 +436,7 @@ This can be seen as transforming with respect to the global/parent frame.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **scaled_local**\ (\ scale\: :ref:`Vector3<class_Vector3>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **scaled_local**\ (\ scale\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`🔗<class_Transform3D_method_scaled_local>`
|
||||
|
||||
Returns a copy of this transform scaled by the given ``scale`` factor.
|
||||
|
||||
@@ -452,7 +452,7 @@ This can be seen as transforming with respect to the local frame.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **translated**\ (\ offset\: :ref:`Vector3<class_Vector3>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **translated**\ (\ offset\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`🔗<class_Transform3D_method_translated>`
|
||||
|
||||
Returns a copy of this transform translated by the given ``offset``.
|
||||
|
||||
@@ -468,7 +468,7 @@ This can be seen as transforming with respect to the global/parent frame.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **translated_local**\ (\ offset\: :ref:`Vector3<class_Vector3>`\ ) |const|
|
||||
:ref:`Transform3D<class_Transform3D>` **translated_local**\ (\ offset\: :ref:`Vector3<class_Vector3>`\ ) |const| :ref:`🔗<class_Transform3D_method_translated_local>`
|
||||
|
||||
Returns a copy of this transform translated by the given ``offset``.
|
||||
|
||||
@@ -489,7 +489,7 @@ Operator Descriptions
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`bool<class_bool>` **operator !=**\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ )
|
||||
:ref:`bool<class_bool>` **operator !=**\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`🔗<class_Transform3D_operator_neq_Transform3D>`
|
||||
|
||||
Returns ``true`` if the components of both transforms are not equal.
|
||||
|
||||
@@ -503,7 +503,7 @@ Returns ``true`` if the components of both transforms are not equal.
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`AABB<class_AABB>` **operator ***\ (\ right\: :ref:`AABB<class_AABB>`\ )
|
||||
:ref:`AABB<class_AABB>` **operator ***\ (\ right\: :ref:`AABB<class_AABB>`\ ) :ref:`🔗<class_Transform3D_operator_mul_AABB>`
|
||||
|
||||
Transforms (multiplies) the :ref:`AABB<class_AABB>` by this transformation matrix.
|
||||
|
||||
@@ -515,7 +515,7 @@ Transforms (multiplies) the :ref:`AABB<class_AABB>` by this transformation matri
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`PackedVector3Array<class_PackedVector3Array>` **operator ***\ (\ right\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ )
|
||||
:ref:`PackedVector3Array<class_PackedVector3Array>` **operator ***\ (\ right\: :ref:`PackedVector3Array<class_PackedVector3Array>`\ ) :ref:`🔗<class_Transform3D_operator_mul_PackedVector3Array>`
|
||||
|
||||
Transforms (multiplies) every :ref:`Vector3<class_Vector3>` element of the given :ref:`PackedVector3Array<class_PackedVector3Array>` by this transformation matrix.
|
||||
|
||||
@@ -529,7 +529,7 @@ On larger arrays, this operation is much faster than transforming each :ref:`Vec
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Plane<class_Plane>` **operator ***\ (\ right\: :ref:`Plane<class_Plane>`\ )
|
||||
:ref:`Plane<class_Plane>` **operator ***\ (\ right\: :ref:`Plane<class_Plane>`\ ) :ref:`🔗<class_Transform3D_operator_mul_Plane>`
|
||||
|
||||
Transforms (multiplies) the :ref:`Plane<class_Plane>` by this transformation matrix.
|
||||
|
||||
@@ -541,7 +541,7 @@ Transforms (multiplies) the :ref:`Plane<class_Plane>` by this transformation mat
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`🔗<class_Transform3D_operator_mul_Transform3D>`
|
||||
|
||||
Transforms (multiplies) this transform by the ``right`` transform.
|
||||
|
||||
@@ -563,7 +563,7 @@ This is the operation performed between parent and child :ref:`Node3D<class_Node
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Vector3<class_Vector3>` **operator ***\ (\ right\: :ref:`Vector3<class_Vector3>`\ )
|
||||
:ref:`Vector3<class_Vector3>` **operator ***\ (\ right\: :ref:`Vector3<class_Vector3>`\ ) :ref:`🔗<class_Transform3D_operator_mul_Vector3>`
|
||||
|
||||
Transforms (multiplies) the :ref:`Vector3<class_Vector3>` by this transformation matrix.
|
||||
|
||||
@@ -575,7 +575,7 @@ Transforms (multiplies) the :ref:`Vector3<class_Vector3>` by this transformation
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`float<class_float>`\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Transform3D_operator_mul_float>`
|
||||
|
||||
Multiplies all components of the **Transform3D** by the given :ref:`float<class_float>`, including the :ref:`origin<class_Transform3D_property_origin>`. This affects the transform's scale uniformly, scaling the :ref:`basis<class_Transform3D_property_basis>`.
|
||||
|
||||
@@ -587,7 +587,7 @@ Multiplies all components of the **Transform3D** by the given :ref:`float<class_
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`int<class_int>`\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **operator ***\ (\ right\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Transform3D_operator_mul_int>`
|
||||
|
||||
Multiplies all components of the **Transform3D** by the given :ref:`int<class_int>`, including the :ref:`origin<class_Transform3D_property_origin>`. This affects the transform's scale uniformly, scaling the :ref:`basis<class_Transform3D_property_basis>`.
|
||||
|
||||
@@ -599,7 +599,7 @@ Multiplies all components of the **Transform3D** by the given :ref:`int<class_in
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **operator /**\ (\ right\: :ref:`float<class_float>`\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **operator /**\ (\ right\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Transform3D_operator_div_float>`
|
||||
|
||||
Divides all components of the **Transform3D** by the given :ref:`float<class_float>`, including the :ref:`origin<class_Transform3D_property_origin>`. This affects the transform's scale uniformly, scaling the :ref:`basis<class_Transform3D_property_basis>`.
|
||||
|
||||
@@ -611,7 +611,7 @@ Divides all components of the **Transform3D** by the given :ref:`float<class_flo
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`Transform3D<class_Transform3D>` **operator /**\ (\ right\: :ref:`int<class_int>`\ )
|
||||
:ref:`Transform3D<class_Transform3D>` **operator /**\ (\ right\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Transform3D_operator_div_int>`
|
||||
|
||||
Divides all components of the **Transform3D** by the given :ref:`int<class_int>`, including the :ref:`origin<class_Transform3D_property_origin>`. This affects the transform's scale uniformly, scaling the :ref:`basis<class_Transform3D_property_basis>`.
|
||||
|
||||
@@ -623,7 +623,7 @@ Divides all components of the **Transform3D** by the given :ref:`int<class_int>`
|
||||
|
||||
.. rst-class:: classref-operator
|
||||
|
||||
:ref:`bool<class_bool>` **operator ==**\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ )
|
||||
:ref:`bool<class_bool>` **operator ==**\ (\ right\: :ref:`Transform3D<class_Transform3D>`\ ) :ref:`🔗<class_Transform3D_operator_eq_Transform3D>`
|
||||
|
||||
Returns ``true`` if the components of both transforms are exactly equal.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user