示例#1
0
        /// <summary>
        /// Convert nodes in a move pattern
        /// </summary>
        /// <param name="nodes"></param>
        /// <returns></returns>
        public static MovePattern ConvertToMovePattern(Node[] nodes)
        {
            MovePattern mp = new MovePattern();

            foreach (Node n in nodes)
            {
                mp.AddPoint(n.Point);
            }

            return mp;
        }
示例#2
0
        private void CreateNodeRoot()
        {
            Rectangle BoundRoot = new Rectangle(0, 0, Width, Height);

            NodeRoot = new Node(0, 0, BoundRoot, null);
        }