用户工具

站点工具


侧边栏

script:unityengine:classes:transform:transform.transformvector

Transform.TransformVector 变换向量

JavaScript ⇒ public function TransformVector(vector: Vector3): Vector3;
C# ⇒ public Vector3 TransformVector(Vector3 vector);

Description 描述

Transforms vector from local space to world space.

变换一个向量从局部坐标空间到世界坐标空间。

This operation is not affected by position of the transform, but is is affected by scale. The returned vector may have a different length than vector.

这个操作不受变换位置的影响,但是受缩放的影响。


JavaScript ⇒ public function TransformVector(x: float, y: float, z: float): Vector3;
C# ⇒ public Vector3 TransformVector(float x, float y, float z);

Description 描述

Transforms vector x, y, z from local space to world space.

变换一个向量(x, y, z)从局部坐标空间到世界坐标空间。

This operation is not affected by position of the transform, but is is affected by scale. The returned vector may have a different length than vector.

这个操作不受变换位置的影响,但是受缩放的影响。

JavaScript:

未提供代码

C#:

未提供代码

Transform

script/unityengine/classes/transform/transform.transformvector.txt · 最后更改: 2016/08/02 05:37 (外部编辑)