(复习一下)
向量a, n, b, c
b为a在a上的投影
a与b夹角为z
b = n*(b/n)
cos z = b/a
b = cosz*a
b = n*(cosz*a/n)
b =n*(cosz*a*n/n*n)
b = n*(a.n/n*n)
c = a - b
a.b = a*b*cosZ
z = arccos (a*b/a.b)
不会打数学符号的渣渣
原文地址:http://www.cnblogs.com/lightlfyan/p/3768644.html