📜  交叉产品 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:13.777000             🧑  作者: Mango

代码示例1
Let a be the direction vector 
Let b be the direction vector 

Cross Product (final answer is a vector):
a × b =  ×  =
< a2*b3 - a3*b2,
  a3*b1 - a1*b3,
  a1*b2 - a2*b1 >
-or-
a × b = (|a||b|sinθ) n, where θ is the angle between the two vectors
                        and n is the unit vector normal (perpendicular) to 
                        the plane created by a and b.