如何计算两向量的夹角

借助V和U的Cross Product和Dot Product来计算向量V和U之间的夹角。

Cocos2d 从v0.99.1实现的方法ccpAngleSigned可以用来计算向量V和U之间的夹角。


Reference

1. http://mathworld.wolfram.com/CrossProduct.html

2. http://mathworld.wolfram.com/DotProduct.html

3. http://www.euclideanspace.com/maths/algebra/vectors/angleBetween/index.htm

4. atan2 方法 (ToRead)

4.1 Angle between two 3D vectors

http://johnblackburne.blogspot.tw/2012/05/angle-between-two-3d-vectors.html

4.2 Using atan2 to find angle between two vectors

4.3 http://www.cplusplus.com/reference/cmath/atan2/ 

原文地址:https://www.cnblogs.com/cwgk/p/2810231.html