• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
dwtfukgv
博客园    首页    新随笔    联系   管理    订阅  订阅

文章分类 -  几何问题

矩形面积并

摘要:#include #include #include using namespace std; const int maxn = 100 + 5; /// 可能 是double struct node{ int x1, y1; int x2, y2; }; node a[maxn]; int x[maxn= a[h].x2) break; fo... 阅读全文
posted @ 2017-03-31 19:34 dwtfukgv 阅读(114) 评论(0) 推荐(0)
线段相交

摘要:转载地址:http://blog.csdn.net/rickliuxiao/article/details/6259322 算法1: 算法2: 算法3:http://dec3.jlu.edu.cn/webcourse/t000096/graphics/chapter5/01_1.html main函 阅读全文
posted @ 2016-08-23 23:52 dwtfukgv 阅读(189) 评论(0) 推荐(0)
极角排序

摘要:转载地址:http://blog.csdn.net/zxy_snow/article/details/6700847 atan2是按向量排序的,这个很好啊,可是就是可能会伤精度,那么会死很惨的。 atan2的参数是向量的y坐标,x坐标,排序范围是(-180°, +180°]。 象限排序是不损精度的, 阅读全文
posted @ 2016-06-22 20:38 dwtfukgv 阅读(194) 评论(0) 推荐(0)

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3