dot product 和 cross product 的区别
-
A dot product of two vectors is also called the scalar product. It is the product of the magnitude of the two vectors and the cosine of the angle that they form with each other. (It is also called the inner product or the projection product.)

-
A cross product of two vectors is also called the vector product. It is the product of the magnitude of the two vectors and the sine of the angle that they form with each other.

The difference between the dot product and the cross product of two vectors is thatthe result of the dot product is a scalar quantity, whereas the result of the cross product is a vector quantity.

本文介绍了通过向量运算判断点是否位于三角形内的两种方法:利用叉乘和点乘的crossproduct法以及通过计算barycentric坐标的Barycentric法,并给出了相应的伪代码。
最低0.47元/天 解锁文章
1268

被折叠的 条评论
为什么被折叠?



