[Unity]什么是Vector3.Scale函数?

2020-04-11 10:25:53 | Unity3D | 2k+ Reads

官方描述:

Multiplies two vectors component-wise.

Every component in the result is a component of a multiplied by the same component of b.

 

事实上就是两个向量相乘:

一张图

如图所示,(2,3,-1)*(1,2,1)=(2,6,-1)。

图

(2,6,-1).normalized=(0.3,0.9,-0.2)

 

 

参考资料:

[1] 两个向量相乘的几何意义是什么?

[2] Unity官方文档 - Vector3.Scale

This article was last edited at 2020-04-11 10:36:44