/// <summary>
        /// 设置旋转初态。此演示项目的初态为一条水平的直线
        /// </summary>
        /// <param name="length">线的长度</param>
        public static void SetRotationStartState(int Linelength)
        {
            pointLoc[] points = new pointLoc[4]; //声明若干个点

            points[0] = new pointLoc(20, 0);     //为点赋值
            points[1] = new pointLoc(20, 10);
            points[2] = new pointLoc(35, 10);
            points[3] = new pointLoc(35, 0);

            PolygonAlgo.CreateGenericPolygon(points);
        }
        /// <summary>
        /// 创建任意个定点的多边形
        /// </summary>
        public static void CreateGenericPolygon()
        {
            pointLoc [] points = new pointLoc[4]; //声明若干个点

            points[0] = new pointLoc(15, 10);     //为点赋值
            points[1] = new pointLoc(35, 10);
            points[2] = new pointLoc(15, 35);
            points[3] = new pointLoc(35, 35);

            CreateGenericPolygon(points);//创建示例多边形
        }
 /// <summary>
 /// DDA画线
 /// </summary>
 /// <param name="StartPoint">起点</param>
 /// <param name="EndPoint">终点</param>
 public static void DrawStraitLineDDA(pointLoc StartPoint, pointLoc EndPoint)
 {
     DrawStraitLineDDA(StartPoint.x, StartPoint.y, EndPoint.x, EndPoint.y);
 }