Algorithm
Algorithm
wzq2009
这个作者很懒,什么都没留下…
展开
-
向量夹角计算
//坐标点struct Point { //public: double x; double y; };//平面向量struct Vector2{ double x; double y; };// 计算两个向量夹角的cos值, cos=0夹角为90度, cos小于0夹角大于90度static inline double getVector2Angle(const Vector2 & a, const Vector2 & b) {原创 2020-06-02 09:16:37 · 2501 阅读 · 0 评论 -
Ray-casting algorithm
https://rosettacode.org/wiki/Ray-casting_algorithmThis page uses content from Wikipedia. The original article was at Point_in_polygon. The list of authors can be seen in the page history. As with Rosetta Code, the text of Wikipedia is available under the转载 2020-06-01 21:16:30 · 649 阅读 · 0 评论