Revert "Fix wrong return type of xform functions"
As this will change bindings API this will have to wait for 3.1
This reverts commit 187c40d64d
.
This commit is contained in:
parent
c7040f3218
commit
99efa7ce62
|
@ -1748,10 +1748,10 @@ void register_variant_methods() {
|
||||||
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, rotated, REAL, "phi", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, rotated, REAL, "phi", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, scaled, VECTOR2, "scale", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, scaled, VECTOR2, "scale", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, translated, VECTOR2, "offset", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, translated, VECTOR2, "offset", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, NIL, Transform2D, xform, NIL, "v", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, xform, NIL, "v", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, NIL, Transform2D, xform_inv, NIL, "v", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, xform_inv, NIL, "v", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, VECTOR2, Transform2D, basis_xform, VECTOR2, "v", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, basis_xform, NIL, "v", varray());
|
||||||
ADDFUNC1R(TRANSFORM2D, VECTOR2, Transform2D, basis_xform_inv, VECTOR2, "v", varray());
|
ADDFUNC1R(TRANSFORM2D, TRANSFORM2D, Transform2D, basis_xform_inv, NIL, "v", varray());
|
||||||
ADDFUNC2R(TRANSFORM2D, TRANSFORM2D, Transform2D, interpolate_with, TRANSFORM2D, "transform", REAL, "weight", varray());
|
ADDFUNC2R(TRANSFORM2D, TRANSFORM2D, Transform2D, interpolate_with, TRANSFORM2D, "transform", REAL, "weight", varray());
|
||||||
|
|
||||||
ADDFUNC0R(BASIS, BASIS, Basis, inverse, varray());
|
ADDFUNC0R(BASIS, BASIS, Basis, inverse, varray());
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
<argument index="0" name="v" type="var">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Transforms the given [Vector3], [Plane], or [AABB] by this transform.
|
Transforms the given vector "v" by this transform.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="xform_inv">
|
<method name="xform_inv">
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
<argument index="0" name="v" type="var">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Inverse-transforms the given [Vector3], [Plane], or [AABB] by this transform.
|
Inverse-transforms the given vector "v" by this transform.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
|
@ -52,18 +52,18 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="basis_xform">
|
<method name="basis_xform">
|
||||||
<return type="Vector2">
|
<return type="Transform2D">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="v" type="Vector2">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Transforms the given vector by this transform's basis (no translation).
|
Transforms the given vector by this transform's basis (no translation).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="basis_xform_inv">
|
<method name="basis_xform_inv">
|
||||||
<return type="Vector2">
|
<return type="Transform2D">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="v" type="Vector2">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Inverse-transforms the given vector by this transform's basis (no translation).
|
Inverse-transforms the given vector by this transform's basis (no translation).
|
||||||
|
@ -143,21 +143,21 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="xform">
|
<method name="xform">
|
||||||
<return type="var">
|
<return type="Transform2D">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="v" type="var">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Transforms the given [Vector2] or [Rect2] by this transform.
|
Transforms the given vector "v" by this transform.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="xform_inv">
|
<method name="xform_inv">
|
||||||
<return type="var">
|
<return type="Transform2D">
|
||||||
</return>
|
</return>
|
||||||
<argument index="0" name="v" type="var">
|
<argument index="0" name="v" type="var">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Inverse-transforms the given [Vector2] or [Rect2] by this transform.
|
Inverse-transforms the given vector "v" by this transform.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Reference in New Issue