- /// <summary>
- /// 获取中心点坐标
- /// </summary>
- /// <param name="p"></param>
- /// <returns></returns>
- public Point GetCenterPoint(Point[] p)
- {
- Point ptCenter = new Point(0, 0);
- int i, j;
- double ai, atmp = 0, xtmp = 0, ytmp = 0;
- if (p == null)
- throw new ArgumentNullException("获取多边形中心点坐标时传入的参数为空。&
求多点的中心点坐标
最新推荐文章于 2024-05-25 08:15:00 发布