简体   繁体   English

乘以2D / 3D向量

[英]Multiplying a 2D/3D vector

If I have a vector that contains (x,y,z) and a multiply it does it multiply the whole thing? 如果我有一个包含(x,y,z)的向量并乘以它会乘以整件事吗? For example: if my vector is (10, 5, 10) and I multiply it by 10 will the outcome be (100, 50, 100)? 例如:如果我的向量是(10,5,10),然后乘以10,结果将是(100,50,100)?

Yes. 是。 Scalars distribute to all components of a vector, no matter the size. 标量分布在向量的所有分量上,无论大小如何。 A quick Google search would have also revealed this. 快速Google搜索也会发现这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM