摘要:
转自http://blog.163.com/shiliping_007/blog/static/25772011201071744031933/向量积 a x b = (^n) * |a| * |b| * sin, 其中^n是同时垂直于a/b且符合右手定则的单位向量。若已知向量a = (ax, ay, az), b = (bx, by, bz);则 a x b = (ay * bz - by * az, az * bx - ax * bz, ax * by - ay * bx);可以把i, j, k和a,b的坐标分别循环写成一行如下:i ~~~~ j ~~~~ k ~~~~ i ~~~~ j 阅读全文