您的位置:首页 > 其它

如何计算两向量的夹角

2012-12-09 17:46 281 查看
借助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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: