05 2017 档案

摘要:double PointToSegDist(double x, double y, double x1, double y1, double x2, double y2) { double cross = (x2 - x1) * (x - x1) + (y2 - y1) * (y - y1); if (cross = d2) return sqrt((x - x2) * (x -... 阅读全文
posted @ 2017-05-26 11:43 Heilce 阅读(301) 评论(0) 推荐(0)
摘要:10union has 8 elements.51015202530405000 所以我们可以的出的结论就是set_union要想往vector里面添加数据首先还是应该先排序的,还有就是要申请足够的内存空间。 back_inserter一个成员函数,返回值是back_insert_iterator, 阅读全文
posted @ 2017-05-18 15:35 Heilce 阅读(481) 评论(0) 推荐(0)