doc: Improve Node2D to_local/to_global description
(cherry picked from commit 5c6f824e71
)
This commit is contained in:
parent
b7dace75c7
commit
fd6424aa04
|
@ -92,7 +92,7 @@
|
||||||
<argument index="0" name="local_point" type="Vector2">
|
<argument index="0" name="local_point" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Converts a local point's coordinates to global coordinates.
|
Transforms the provided local position into a position in global coordinate space. The input is expected to be local relative to the [Node2D] it is called on. e.g. Applying this method to the positions of child nodes will correctly transform their positions into the global coordinate space, but applying it to a node's own position will give an incorrect result, as it will incorporate the node's own transformation into its global position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="to_local" qualifiers="const">
|
<method name="to_local" qualifiers="const">
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
<argument index="0" name="global_point" type="Vector2">
|
<argument index="0" name="global_point" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Converts a global point's coordinates to local coordinates.
|
Transforms the provided global position into a position in local coordinate space. The output will be local relative to the [Node2D] it is called on. e.g. It is appropriate for determining the positions of child nodes, but it is not appropriate for determining its own position relative to its parent.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="translate">
|
<method name="translate">
|
||||||
|
|
Loading…
Reference in New Issue