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); }
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)); } }