浏览代码

Clarify Transform.xform_inv docs

(cherry picked from commit c20d0976362784411780f3dd41414e06373aad0e)
kleonc 4 年之前
父节点
当前提交
d3b0436cfb
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/Transform.xml
  2. 1 1
      doc/classes/Transform2D.xml

+ 1 - 1
doc/classes/Transform.xml

@@ -132,7 +132,7 @@
 			<return type="Variant" />
 			<return type="Variant" />
 			<argument index="0" name="v" type="Variant" />
 			<argument index="0" name="v" type="Variant" />
 			<description>
 			<description>
-				Inverse-transforms the given [Vector3], [Plane], [AABB], or [PoolVector3Array] by this transform.
+				Inverse-transforms the given [Vector3], [Plane], [AABB], or [PoolVector3Array] by this transform, under the assumption that the transformation is composed of rotation and translation (no scaling). Equivalent to calling [code]inverse().xform(v)[/code] on this transform. For affine transformations (e.g. with scaling) see [method affine_inverse] method.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>

+ 1 - 1
doc/classes/Transform2D.xml

@@ -138,7 +138,7 @@
 			<return type="Variant" />
 			<return type="Variant" />
 			<argument index="0" name="v" type="Variant" />
 			<argument index="0" name="v" type="Variant" />
 			<description>
 			<description>
-				Inverse-transforms the given [Vector2], [Rect2], or [PoolVector2Array] by this transform.
+				Inverse-transforms the given [Vector2], [Rect2], or [PoolVector2Array] by this transform, under the assumption that the transformation is composed of rotation and translation (no scaling). Equivalent to calling [code]inverse().xform(v)[/code] on this transform. For affine transformations (e.g. with scaling) see [method affine_inverse] method.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>