Exemple #1
0
        public Bound SetBoundByDevs()
        {
            List <Point> ps = new List <Point>();

            foreach (var item in LeafNodes)
            {
                ps.Add(new Point(item.PosX, item.PosZ, 0));
            }
            InitBound.SetInitBound(ps.ToArray());
            return(InitBound);
        }
Exemple #2
0
        public Point GetClosePointEx(double x, double y)
        {
            var area = GetCloseArea(x, y);

            if (area != null)
            {
                return(area.InitBound.GetClosePoint(x, y));
            }
            else
            {
                return(InitBound.GetClosePoint(x, y));
            }
        }